From: Haoqun Jiang Date: Thu, 18 May 2023 04:52:02 +0000 (+0800) Subject: workflow: respect `--skipGit` on `pnpm publish` (#8261) X-Git-Tag: v3.3.3~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17d37d6a04b05b0ef0016c90f38b9d0a26030db8;p=thirdparty%2Fvuejs%2Fcore.git workflow: respect `--skipGit` on `pnpm publish` (#8261) Fixes errors like https://github.com/vuejs/core/actions/runs/4924472857/jobs/8797539690#step:6:332 --- diff --git a/scripts/release.js b/scripts/release.js index 49a11a5520..2c91cbbafa 100644 --- a/scripts/release.js +++ b/scripts/release.js @@ -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,