Skip to content

Commit 17d37d6

Browse files
authored
workflow: respect --skipGit on pnpm publish (#8261)
Fixes errors like https://github.com/vuejs/core/actions/runs/4924472857/jobs/8797539690#step:6:332
1 parent fab9c72 commit 17d37d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/release.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,8 @@ async function publishPackage(pkgName, version) {
353353
...(releaseTag ? ['--tag', releaseTag] : []),
354354
'--access',
355355
'public',
356-
...(isDryRun ? ['--dry-run'] : [])
356+
...(isDryRun ? ['--dry-run'] : []),
357+
...(skipGit ? ['--no-git-checks'] : [])
357358
],
358359
{
359360
cwd: pkgRoot,

0 commit comments

Comments
 (0)