Skip to content
Permalink
Browse files

build: fix non-beta tagging in the npm publish script

  • Loading branch information
MarshallOfSound committed Mar 21, 2019
1 parent 313880f commit 8e062e6fad73cacd6ba07ee664a56233d2c41a7e
Showing with 2 additions and 2 deletions.
  1. +2 −2 tools/publish.js
@@ -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) {

0 comments on commit 8e062e6

Please sign in to comment.
You can’t perform that action at this time.