Skip to content

Commit

Permalink
workflow: correctly set releaseType
Browse files Browse the repository at this point in the history
  • Loading branch information
sodatea committed Oct 17, 2019
1 parent dc318c5 commit f99269b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/release.js
Expand Up @@ -102,7 +102,9 @@ const release = async () => {
}
}

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

let distTag = 'latest'
if (releaseType.startsWith('pre') && !cliOptions['local-registry']) {
Expand Down

0 comments on commit f99269b

Please sign in to comment.