File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -139,10 +139,13 @@ async function main() {
139
139
files : { exclude : [ '.DS_Store' ] } ,
140
140
} ) ;
141
141
const truncatedHash = hash . slice ( 0 , 7 ) ;
142
- const newVersion =
142
+ let newVersion =
143
143
argv . tagVersion == null || argv . tagVersion === ''
144
- ? `${ argv . versionName } -${ argv . tag } -${ truncatedHash } -${ dateString } `
145
- : `${ argv . versionName } -${ argv . tag } .${ argv . tagVersion } -${ truncatedHash } -${ dateString } ` ;
144
+ ? `${ argv . versionName } -${ argv . tag } `
145
+ : `${ argv . versionName } -${ argv . tag } .${ argv . tagVersion } ` ;
146
+ if ( argv . tag === 'experimental' || argv . tag === 'beta' ) {
147
+ newVersion = `${ newVersion } -${ truncatedHash } -${ dateString } ` ;
148
+ }
146
149
147
150
for ( const pkgName of pkgNames ) {
148
151
const pkgDir = path . resolve ( __dirname , `../../packages/${ pkgName } ` ) ;
You can’t perform that action at this time.
0 commit comments