Skip to content

Commit

Permalink
Ignore GitHub releases for experimental versions
Browse files Browse the repository at this point in the history
  • Loading branch information
luin committed Mar 15, 2024
1 parent 74eb742 commit 88c3f5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/release.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ exec(`npm version ${version} -f`);
const pushCommand = `git push origin ${process.env.GITHUB_REF_NAME} --follow-tags`;
if (dryRun) {
console.log(`Skipping: "${pushCommand}" in dry-run mode`);
} else if (version === 'experimental') {
} else if (distTag === 'experimental') {
console.log(`Skipping: "${pushCommand}" for experimental version`);
} else {
exec(pushCommand);
Expand All @@ -147,7 +147,7 @@ exec(`npm publish --tag ${distTag}${dryRun ? ' --dry-run' : ''}`);
/*
* Create GitHub release
*/
if (version === 'experimental') {
if (distTag === 'experimental') {
console.log('Skipping GitHub release for experimental version');
} else {
const filename = `release-note-${version}-${(Math.random() * 1000) | 0}.txt`;
Expand Down

0 comments on commit 88c3f5b

Please sign in to comment.