Skip prompting for version when running auto build

This commit is contained in:
John Kleinschmidt
2018-03-09 15:10:29 -05:00
parent 2f47b71211
commit 7a91c5668f

View File

@@ -187,7 +187,12 @@ async function tagRelease (version) {
async function verifyNewVersion () {
let newVersion = getNewVersion(true)
let response = await promptForVersion(newVersion)
let response
if (args.automaticRelease) {
response = 'y'
} else {
response = await promptForVersion(newVersion)
}
if (response.match(/^y/i)) {
console.log(`${pass} Starting release of ${newVersion}`)
} else {