Skip to content

Commit

Permalink
chore: simplify npm dist-tags strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
bowheart committed Jul 30, 2024
1 parent 25c3636 commit f9042fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -542,9 +542,9 @@ const makePullRequest = async (email, token, branch, tagName) => {
const npmPublish = async (branch, packages, isPrerelease) => {
let proceed = true
const tagStr = isNextBranch(branch)
? ` --tag next-${branch.slice(5, -2)}`
? ` --tag canary`
: isSupportBranch(branch)
? ` --tag lts-${isPrerelease ? 'next-' : ''}${branch.slice(0, -2)}`
? ` --tag lts`
: isPrerelease
? ' --tag next'
: ''
Expand Down

0 comments on commit f9042fd

Please sign in to comment.