Browse Source

Skip prompting for version when running auto build

John Kleinschmidt 7 years ago
parent
commit
7a91c5668f
1 changed files with 6 additions and 1 deletions
  1. 6 1
      script/prepare-release.js

+ 6 - 1
script/prepare-release.js

@@ -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 {