Skip to content

Commit 7213509

Browse files
authored
[compiler] Only append hash and date for experimental releases (#32981)
No need to append these for non experimental/beta releases.
1 parent 4c54da7 commit 7213509

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

compiler/scripts/release/publish.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,13 @@ async function main() {
139139
files: {exclude: ['.DS_Store']},
140140
});
141141
const truncatedHash = hash.slice(0, 7);
142-
const newVersion =
142+
let newVersion =
143143
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+
}
146149

147150
for (const pkgName of pkgNames) {
148151
const pkgDir = path.resolve(__dirname, `../../packages/${pkgName}`);

0 commit comments

Comments
 (0)