build: don't wait for changelog edits when `--skip-prompts` or `--canary` is specified (#7965)

This commit is contained in:
Haoqun Jiang 2023-03-28 09:42:45 +08:00 committed by GitHub
parent e3de9a6911
commit 543d6dbc94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 7 deletions

View File

@ -211,6 +211,7 @@ async function main() {
await run(`pnpm`, ['run', 'changelog'])
// @ts-ignore
if (!skipPrompts) {
const { yes: changelogOk } = await prompt({
type: 'confirm',
name: 'yes',
@ -220,6 +221,7 @@ async function main() {
if (!changelogOk) {
return
}
}
// update pnpm-lock.yaml
// skipped during canary release because the package names changed and installing with `workspace:*` would fail