We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9a03213 + 54410fb commit e664088Copy full SHA for e664088
tools/scripts/publish.mjs
@@ -7,7 +7,8 @@ if (process.env.READY_FOR_PUBLISH !== 'true') {
7
8
// Executing publish script: node path/to/publish.mjs {tag}
9
// Default "tag" to "alpha" so we won't publish the "latest" tag by accident.
10
-const [, , tag = 'alpha'] = process.argv;
+let [, , tag] = process.argv;
11
+if (!tag || tag === 'undefined') tag = 'alpha';
12
13
// Execute "npm publish" to publish
14
execSync(`npm publish --tag ${tag}`);
0 commit comments