Skip to content

Commit

Permalink
Fix npm tags for special releases
Browse files Browse the repository at this point in the history
  • Loading branch information
cee-chen committed Dec 3, 2023
1 parent d11a98f commit 2474384
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,11 @@ const hasStep = (step) => {
const otp = await getOneTimePassword(versionTarget);

// publish new version to npm
execSync(`npm publish --otp=${otp}`, execOptions);
if (isSpecialRelease) {
execSync(`npm publish --tag=${args.type} --otp=${otp}`, execOptions);
} else {
execSync(`npm publish --otp=${otp}`, execOptions);
}
}
})().catch((e) => console.error(e));

Expand Down

0 comments on commit 2474384

Please sign in to comment.