diff --git a/tools/publish.js b/tools/publish.js index 6e9223a6d5..15f5952835 100644 --- a/tools/publish.js +++ b/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) {