@@ -211,14 +211,16 @@ async function main() {
await run(`pnpm`, ['run', 'changelog'])
// @ts-ignore
- const { yes: changelogOk } = await prompt({
- type: 'confirm',
- name: 'yes',
- message: `Changelog generated. Does it look good?`
- })
+ if (!skipPrompts) {
+ const { yes: changelogOk } = await prompt({
+ type: 'confirm',
+ name: 'yes',
+ message: `Changelog generated. Does it look good?`
+ })
- if (!changelogOk) {
- return
+ if (!changelogOk) {
+ return
+ }
}
// update pnpm-lock.yaml