Skip to content

Commit

Permalink
build: fix version bump script for first beta
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound committed Jan 22, 2019
1 parent 3926d9d commit 29e5195
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ELECTRON_VERSION
@@ -1 +1 @@
5.0.0-nightly.20190122
5.0.0-beta.0
2 changes: 1 addition & 1 deletion script/lib/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 29e5195

Please sign in to comment.