Skip to content

Commit 9dd98f0

Browse files
committed
chore: allow editing changelog before committing release
1 parent c288c7b commit 9dd98f0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

scripts/release.js

+11
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,17 @@ async function main() {
210210
step('\nGenerating changelog...')
211211
await run(`pnpm`, ['run', 'changelog'])
212212

213+
// @ts-ignore
214+
const { yes: changelogOk } = await prompt({
215+
type: 'confirm',
216+
name: 'yes',
217+
message: `Changelog generated. Does it look good?`
218+
})
219+
220+
if (!changelogOk) {
221+
return
222+
}
223+
213224
// update pnpm-lock.yaml
214225
// skipped during canary release because the package names changed and installing with `workspace:*` would fail
215226
if (!isCanary) {

0 commit comments

Comments
 (0)