Skip to content

Commit e333312

Browse files
committed
workflow: fix release script in actions
1 parent c6841bd commit e333312

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

scripts/release.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -499,15 +499,9 @@ async function publishPackages(version) {
499499
if (isDryRun) {
500500
additionalPublishFlags.push('--dry-run')
501501
}
502-
if (isDryRun || skipGit) {
502+
if (isDryRun || skipGit || process.env.CI) {
503503
additionalPublishFlags.push('--no-git-checks')
504504
}
505-
// bypass the pnpm --publish-branch restriction which isn't too useful to us
506-
// otherwise it leads to a prompt and blocks the release script
507-
const branch = await getBranch()
508-
if (branch !== 'main') {
509-
additionalPublishFlags.push('--publish-branch', branch)
510-
}
511505
// add provenance metadata when releasing from CI
512506
// canary release commits are not pushed therefore we don't need to add provenance
513507
if (process.env.CI && !isCanary) {

0 commit comments

Comments
 (0)