Skip to content

Commit 543d6db

Browse files
authored
build: don't wait for changelog edits when --skip-prompts or --canary is specified (#7965)
1 parent e3de9a6 commit 543d6db

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

scripts/release.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -211,14 +211,16 @@ async function main() {
211211
await run(`pnpm`, ['run', 'changelog'])
212212

213213
// @ts-ignore
214-
const { yes: changelogOk } = await prompt({
215-
type: 'confirm',
216-
name: 'yes',
217-
message: `Changelog generated. Does it look good?`
218-
})
214+
if (!skipPrompts) {
215+
const { yes: changelogOk } = await prompt({
216+
type: 'confirm',
217+
name: 'yes',
218+
message: `Changelog generated. Does it look good?`
219+
})
219220

220-
if (!changelogOk) {
221-
return
221+
if (!changelogOk) {
222+
return
223+
}
222224
}
223225

224226
// update pnpm-lock.yaml

0 commit comments

Comments
 (0)