File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments