Skip to content

Commit 28cc38a

Browse files
committed
chore: update release script
1 parent 066b5fa commit 28cc38a

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

scripts/release.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ async function main() {
5656

5757
console.log(tag)
5858

59-
const { yes } = await prompt({
59+
const { yes: tagOk } = await prompt({
6060
type: 'confirm',
6161
name: 'yes',
6262
message: `Releasing v${targetVersion}. Confirm?`
6363
})
6464

65-
if (!yes) {
65+
if (!tagOk) {
6666
return
6767
}
6868

@@ -84,6 +84,16 @@ async function main() {
8484
step('\nGenerating the changelog...')
8585
await run('yarn', ['changelog'])
8686

87+
const { yes: changelogOk } = await prompt({
88+
type: 'confirm',
89+
name: 'yes',
90+
message: `Changelog generated. Does it look good?`
91+
})
92+
93+
if (!changelogOk) {
94+
return
95+
}
96+
8797
// Commit changes to the Git.
8898
step('\nCommitting changes...')
8999
await run('git', ['add', '-A'])

0 commit comments

Comments
 (0)