@samitouri / QOS-React-2 / commits / 1384ea8230

[compiler] Update release script for latest tag (#34763)

Updates our release script so we can publish to the `latest` tag.

lauren committed Oct 7, 2025 at 14:14 UTC 1384ea8230641e3fc569a510b5f1c73f3f28302d
1 file changed +4 -16
compiler/scripts/release/publish.js
+4 -16
@@ -68,7 +68,7 @@ async function main() {
68 .option('tag', {
69 description: 'Tag to publish to npm',
70 type: 'choices',
71 - choices: ['experimental', 'beta', 'rc'],
71 + choices: ['experimental', 'beta', 'rc', 'latest'],
72 default: 'experimental',
73 })
74 .option('tag-version', {
@@ -181,21 +181,9 @@ async function main() {
181 if (otp != null) {
182 opts.push(`--otp=${otp}`);
183 }
184 - /**
185 - * Typically, the `latest` tag is reserved for stable package versions. Since the the compiler
186 - * is still pre-release, until we have a stable release let's only add the
187 - * `latest` tag to non-experimental releases.
188 - *
189 - * `latest` is added by default, so we only override it for experimental releases so that
190 - * those don't get the `latest` tag.
191 - *
192 - * TODO: Update this when we have a stable release.
193 - */
194 - if (argv.tag === 'experimental') {
195 - opts.push('--tag=experimental');
196 - } else {
197 - opts.push('--tag=latest');
198 - }
184 +
185 + opts.push(`--tag=${argv.tag}`);
186 +
187 try {
188 await spawnHelper(
189 'npm',