]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
workflow: respect `--skipGit` on `pnpm publish` (#8261)
authorHaoqun Jiang <haoqunjiang@gmail.com>
Thu, 18 May 2023 04:52:02 +0000 (12:52 +0800)
committerGitHub <noreply@github.com>
Thu, 18 May 2023 04:52:02 +0000 (12:52 +0800)
Fixes errors like https://github.com/vuejs/core/actions/runs/4924472857/jobs/8797539690#step:6:332

scripts/release.js

index 49a11a5520b9597c9c985fdc6e80405e414e34d8..2c91cbbaface1b0590859544828f0b6d87c9df95 100644 (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,