Просмотр исходного кода

chore: allow editing changelog before committing release

Evan You 3 лет назад
Родитель
Сommit
9dd98f00f2
1 измененных файлов с 11 добавлено и 0 удалено
  1. 11 0
      scripts/release.js

+ 11 - 0
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) {