Skip to content

Commit

Permalink
build: fix first beta version choosing logic
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound committed Jul 31, 2019
1 parent 47a38da commit bf66fe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/release/version-utils.js
Expand Up @@ -47,7 +47,7 @@ async function nextBeta (v) {
tags.sort((t1, t2) => semver.gt(t1, t2))

// increment the latest existing beta tag or start at beta.1 if it's a new beta line
return tags.length === 0 ? semver.inc(next, 'beta', 'prerelease') : semver.inc(tags.pop(), 'prerelease')
return tags.length === 0 ? `${next}-beta.1` : semver.inc(tags.pop(), 'prerelease')
}

async function getElectronVersion () {
Expand Down

0 comments on commit bf66fe5

Please sign in to comment.