Railcar: separate beta & stable channels by minor version

Also, remove the '.0' suffix for the '-dev' version on master
This commit is contained in:
Max Brunsfeld 2015-09-17 10:39:45 -07:00
parent 3eddcf4c52
commit 513318924f

View File

@ -48,12 +48,12 @@ function bumpStableVersion (next) {
}
function bumpBetaVersion (next) {
var newVersion = semver.inc(getCurrentVersion(), 'prerelease', 'beta')
var newVersion = semver.inc(getCurrentVersion(), 'preminor', 'beta')
run('npm version ' + newVersion)(next)
}
function bumpDevVersion (next) {
var newVersion = semver.inc(getCurrentVersion(), 'preminor', 'dev')
var newVersion = semver.inc(getCurrentVersion(), 'preminor', 'dev').replace(/\.0$/, '')
series([
run('npm --no-git-tag-version version ' + newVersion),
run('git commit -am "' + newVersion + '"')