Browse Source
build: don't wait for changelog edits when `--skip-prompts` or `--canary` is specified (#7965)
pull/7949/head
Haoqun Jiang
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
9 additions and
7 deletions
-
scripts/release.js
|
|
@ -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
|
|
|
|