Skip to content

Commit fafc6aa

Browse files
authored
fix(publish): set --no-git-checks for pnpm (#31)
1 parent 633be46 commit fafc6aa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/utils.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,9 @@ export async function publishPackage(
147147
if (provenance) {
148148
publicArgs.push(`--provenance`);
149149
}
150+
if (packageManager === "pnpm") {
151+
publicArgs.push(`--no-git-checks`);
152+
}
150153
await runIfNotDry(packageManager, publicArgs, {
151154
cwd: pkgDir,
152155
});

0 commit comments

Comments
 (0)