File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -42,10 +42,16 @@ async function ensureBuildVersion(packageName, version) {
42
42
*/
43
43
function publishBuild ( packageName , tag ) {
44
44
let buildDir = path . join ( rootDir , "packages" , packageName ) ;
45
+ let args = [ "--access public" , `--tag ${ tag } ` ] ;
46
+ if ( tag === "experimental" ) {
47
+ args . push ( `--no-git-checks` ) ;
48
+ } else {
49
+ args . push ( "--publish-branch release-next" ) ;
50
+ }
45
51
console . log ( ) ;
46
52
console . log ( ` pnpm publish ${ buildDir } --tag ${ tag } --access public` ) ;
47
53
console . log ( ) ;
48
- execSync ( `pnpm publish ${ buildDir } --tag ${ tag } --access public ` , {
54
+ execSync ( `pnpm publish ${ buildDir } ${ args . join ( " " ) } ` , {
49
55
stdio : "inherit" ,
50
56
} ) ;
51
57
}
Original file line number Diff line number Diff line change @@ -147,7 +147,13 @@ async function run() {
147
147
} ) ;
148
148
}
149
149
150
- // 7. Commit and tag
150
+ // 7. Sync up the pnpm-lock.yaml for pnpm if this is an experimental release
151
+ if ( isExperimental ) {
152
+ console . log ( chalk . green ( " Syncing pnpm lockfile..." ) ) ;
153
+ execSync ( "pnpm install --no-frozen-lockfile" ) ;
154
+ }
155
+
156
+ // 8. Commit and tag
151
157
execSync ( `git commit --all --message="Version ${ version } "` ) ;
152
158
execSync ( `git tag -a -m "Version ${ version } " v${ version } ` ) ;
153
159
console . log ( chalk . green ( ` Committed and tagged version ${ version } ` ) ) ;
You can’t perform that action at this time.
0 commit comments