Skip to content

Commit

Permalink
perf: simplify npm publish
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Jun 3, 2022
1 parent a9f93d3 commit 24f249e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions release.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,10 @@ ${commits.join('\n')}`).join('\n')
await $`curl -u ${GIT_COMMITTER_NAME}:${GITHUB_TOKEN} -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/${repoName}/releases -d ${releaseData}`

// Publish npm artifact
await $`npm config set registry https://registry.npmjs.org`
await $`npm publish --no-git-tag-version`
await $`npm publish --no-git-tag-version --registry=https://registry.npmjs.org`

await $`echo "\`jq '.name="@${repoName}"' package.json\`" > package.json`
await $`npm config set registry https://npm.pkg.github.com`
await $`npm publish --no-git-tag-version`
await $`npm publish --no-git-tag-version --registry=https://npm.pkg.github.com`

console.log(chalk.bold('Great success!'))
})()

0 comments on commit 24f249e

Please sign in to comment.