]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: allow editing changelog before committing release
authorEvan You <yyx990803@gmail.com>
Sun, 26 Mar 2023 08:38:42 +0000 (16:38 +0800)
committerEvan You <yyx990803@gmail.com>
Sun, 26 Mar 2023 08:38:42 +0000 (16:38 +0800)
scripts/release.js

index 55e01251e9d887bff0071f1b4d0ba58f3f177a4f..70967d6d7225aa5a95a326f5d57809281f9bbe8e 100644 (file)
@@ -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) {