From 9dd98f00f26c95aa086dd61e8c7e3f32270d118f Mon Sep 17 00:00:00 2001 From: Evan You Date: Sun, 26 Mar 2023 16:38:42 +0800 Subject: [PATCH] chore: allow editing changelog before committing release --- scripts/release.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/release.js b/scripts/release.js index 55e01251e9d..70967d6d722 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) {