From: Evan You Date: Sun, 26 Mar 2023 08:38:42 +0000 (+0800) Subject: chore: allow editing changelog before committing release X-Git-Tag: v3.3.0-alpha.5~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9dd98f00f26c95aa086dd61e8c7e3f32270d118f;p=thirdparty%2Fvuejs%2Fcore.git chore: allow editing changelog before committing release --- diff --git a/scripts/release.js b/scripts/release.js index 55e01251e9..70967d6d72 100644 --- a/scripts/release.js +++ b/scripts/release.js @@ -210,6 +210,17 @@ async function main() { step('\nGenerating changelog...') await run(`pnpm`, ['run', 'changelog']) + // @ts-ignore + const { yes: changelogOk } = await prompt({ + type: 'confirm', + name: 'yes', + message: `Changelog generated. Does it look good?` + }) + + if (!changelogOk) { + return + } + // update pnpm-lock.yaml // skipped during canary release because the package names changed and installing with `workspace:*` would fail if (!isCanary) {