From: Haoqun Jiang Date: Tue, 28 Mar 2023 01:42:45 +0000 (+0800) Subject: build: don't wait for changelog edits when `--skip-prompts` or `--canary` is specifie... X-Git-Tag: v3.3.0-alpha.6~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=543d6dbc941cfcf60931168f149490779c888841;p=thirdparty%2Fvuejs%2Fcore.git build: don't wait for changelog edits when `--skip-prompts` or `--canary` is specified (#7965) --- diff --git a/scripts/release.js b/scripts/release.js index 70967d6d72..7303067fa0 100644 --- a/scripts/release.js +++ b/scripts/release.js @@ -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