workflow: respect `--skipGit` on `pnpm publish` (#8261)

Fixes errors like https://github.com/vuejs/core/actions/runs/4924472857/jobs/8797539690#step:6:332
This commit is contained in:
Haoqun Jiang 2023-05-18 12:52:02 +08:00 committed by GitHub
parent fab9c72780
commit 17d37d6a04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -353,7 +353,8 @@ async function publishPackage(pkgName, version) {
...(releaseTag ? ['--tag', releaseTag] : []),
'--access',
'public',
...(isDryRun ? ['--dry-run'] : [])
...(isDryRun ? ['--dry-run'] : []),
...(skipGit ? ['--no-git-checks'] : [])
],
{
cwd: pkgRoot,