Skip to content

Commit

Permalink
fix: release script
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon committed Mar 7, 2023
1 parent 9960717 commit 10a5523
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/release.ts
Expand Up @@ -153,12 +153,12 @@ async function updateVersion(
}

async function publishPackage(version: string, pkgName: string, runIfNotDry) {
const publicArgs = ['npm', 'publish', '--access', 'public']
const publicArgs = ['publish', '--access', 'public']
if (args.tag) {
publicArgs.push(`--tag`, args.tag)
}
try {
await runIfNotDry('yarn', publicArgs)
await runIfNotDry('npm', publicArgs)
console.log(chalk.green(`Successfully published ${pkgName}@${version}`))
} catch (e) {
console.error(e)
Expand Down

0 comments on commit 10a5523

Please sign in to comment.