Skip to content

Commit

Permalink
workflow: correctly decide which dist-tag to use
Browse files Browse the repository at this point in the history
  • Loading branch information
haoqunjiang committed Nov 27, 2019
1 parent d316a18 commit d21245d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,8 @@ const release = async () => {
}
}

const releaseType = semver.prerelease(curVersion)
? 'prerelease'
: semver.diff(curVersion, version)

let distTag = 'latest'
if (releaseType.startsWith('pre')) {
if (bump === 'prerelease' || semver.prerelease(version)) {
distTag = 'next'
}

Expand Down

0 comments on commit d21245d

Please sign in to comment.