@samitouri / QOS-React / commits / 7213509649

[compiler] Only append hash and date for experimental releases (#32981)

No need to append these for non experimental/beta releases.

lauren committed Apr 21, 2025 at 15:10 UTC 721350964952457e0b9286867c42135df0c5e787
1 file changed +6 -3
compiler/scripts/release/publish.js
+6 -3
@@ -139,10 +139,13 @@ async function main() {
139 files: {exclude: ['.DS_Store']},
140 });
141 const truncatedHash = hash.slice(0, 7);
142 - const newVersion =
142 + let newVersion =
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 + }
149
150 for (const pkgName of pkgNames) {
151 const pkgDir = path.resolve(__dirname, `../../packages/${pkgName}`);