File tree 1 file changed +12
-2
lines changed
1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -56,13 +56,13 @@ async function main() {
56
56
57
57
console . log ( tag )
58
58
59
- const { yes } = await prompt ( {
59
+ const { yes : tagOk } = await prompt ( {
60
60
type : 'confirm' ,
61
61
name : 'yes' ,
62
62
message : `Releasing v${ targetVersion } with the "${ tag } " tag. Confirm?`
63
63
} )
64
64
65
- if ( ! yes ) {
65
+ if ( ! tagOk ) {
66
66
return
67
67
}
68
68
@@ -82,6 +82,16 @@ async function main() {
82
82
step ( '\nGenerating the changelog...' )
83
83
await run ( 'yarn' , [ 'changelog' ] )
84
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
+
85
95
// Commit changes to the Git.
86
96
step ( '\nCommitting changes...' )
87
97
await run ( 'git' , [ 'add' , '-A' ] )
You can’t perform that action at this time.
0 commit comments