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) {
499
499
if ( isDryRun ) {
500
500
additionalPublishFlags . push ( '--dry-run' )
501
501
}
502
- if ( isDryRun || skipGit ) {
502
+ if ( isDryRun || skipGit || process . env . CI ) {
503
503
additionalPublishFlags . push ( '--no-git-checks' )
504
504
}
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
- }
511
505
// add provenance metadata when releasing from CI
512
506
// canary release commits are not pushed therefore we don't need to add provenance
513
507
if ( process . env . CI && ! isCanary ) {
You can’t perform that action at this time.
0 commit comments