]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
build: don't wait for changelog edits when `--skip-prompts` or `--canary` is specifie...
authorHaoqun Jiang <haoqunjiang@gmail.com>
Tue, 28 Mar 2023 01:42:45 +0000 (09:42 +0800)
committerGitHub <noreply@github.com>
Tue, 28 Mar 2023 01:42:45 +0000 (09:42 +0800)
scripts/release.js

index 70967d6d7225aa5a95a326f5d57809281f9bbe8e..7303067fa08ce08e298a0f1feaf50e0c6de0d99d 100644 (file)
@@ -211,14 +211,16 @@ async function main() {
   await run(`pnpm`, ['run', 'changelog'])
 
   // @ts-ignore
-  const { yes: changelogOk } = await prompt({
-    type: 'confirm',
-    name: 'yes',
-    message: `Changelog generated. Does it look good?`
-  })
+  if (!skipPrompts) {
+    const { yes: changelogOk } = await prompt({
+      type: 'confirm',
+      name: 'yes',
+      message: `Changelog generated. Does it look good?`
+    })
 
-  if (!changelogOk) {
-    return
+    if (!changelogOk) {
+      return
+    }
   }
 
   // update pnpm-lock.yaml