]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
workflow: fix release script in actions
authorEvan You <evan@vuejs.org>
Thu, 8 Aug 2024 13:42:43 +0000 (21:42 +0800)
committerEvan You <evan@vuejs.org>
Thu, 8 Aug 2024 13:42:43 +0000 (21:42 +0800)
scripts/release.js

index a3517c30728214008e5c8d0372308af04e172696..5cb492e2180a7cabe4d79f1594bb12af12a61a02 100644 (file)
@@ -499,15 +499,9 @@ async function publishPackages(version) {
   if (isDryRun) {
     additionalPublishFlags.push('--dry-run')
   }
-  if (isDryRun || skipGit) {
+  if (isDryRun || skipGit || process.env.CI) {
     additionalPublishFlags.push('--no-git-checks')
   }
-  // bypass the pnpm --publish-branch restriction which isn't too useful to us
-  // otherwise it leads to a prompt and blocks the release script
-  const branch = await getBranch()
-  if (branch !== 'main') {
-    additionalPublishFlags.push('--publish-branch', branch)
-  }
   // add provenance metadata when releasing from CI
   // canary release commits are not pushed therefore we don't need to add provenance
   if (process.env.CI && !isCanary) {