Skip to content

Commit e664088

Browse files
authored
Merge pull request #44 from Canner/fix/fix-publish-script
Fix: Fix default tag name of npm
2 parents 9a03213 + 54410fb commit e664088

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/scripts/publish.mjs

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ if (process.env.READY_FOR_PUBLISH !== 'true') {
77

88
// Executing publish script: node path/to/publish.mjs {tag}
99
// Default "tag" to "alpha" so we won't publish the "latest" tag by accident.
10-
const [, , tag = 'alpha'] = process.argv;
10+
let [, , tag] = process.argv;
11+
if (!tag || tag === 'undefined') tag = 'alpha';
1112

1213
// Execute "npm publish" to publish
1314
execSync(`npm publish --tag ${tag}`);

0 commit comments

Comments
 (0)