We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b22b062 commit 8d2ba4dCopy full SHA for 8d2ba4d
scripts/release.js
@@ -56,13 +56,13 @@ async function main() {
56
57
console.log(tag)
58
59
- const { yes } = await prompt({
+ const { yes: tagOk } = await prompt({
60
type: 'confirm',
61
name: 'yes',
62
message: `Releasing v${targetVersion} with the "${tag}" tag. Confirm?`
63
})
64
65
- if (!yes) {
+ if (!tagOk) {
66
return
67
}
68
@@ -82,6 +82,16 @@ async function main() {
82
step('\nGenerating the changelog...')
83
await run('yarn', ['changelog'])
84
85
+ const { yes: changelogOk } = await prompt({
86
+ type: 'confirm',
87
+ name: 'yes',
88
+ message: `Changelog generated. Does it look good?`
89
+ })
90
+
91
+ if (!changelogOk) {
92
+ return
93
+ }
94
95
// Commit changes to the Git.
96
step('\nCommitting changes...')
97
await run('git', ['add', '-A'])
0 commit comments