Skip to content

Commit

Permalink
build: fix non-beta tagging in the npm publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound committed Mar 21, 2019
1 parent 313880f commit 8e062e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ const publisher = new Listr([
// const isBeta = version.includes('beta');
const isBeta = false;
return {
title: `Publishing: ${`${name}@${version}`.cyan} (beta=${isBeta ? 'true'.green : 'red'.red})`,
title: `Publishing: ${`${name}@${version}`.cyan} (beta=${isBeta ? 'true'.green : 'false'.red})`,
task: async () => {
try {
await spawnPromise('npm', ['publish', '--access=public', `${isBeta ? '--tag=beta' : ''}`, `--otp=${ctx.otp}`], {
await spawnPromise('npm', ['publish', '--access=public', ...(isBeta ? ['--tag=beta'] : []), `--otp=${ctx.otp}`], {
cwd: dir,
});
} catch (err) {
Expand Down

0 comments on commit 8e062e6

Please sign in to comment.