File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 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 } . Confirm?`
63
63
} )
64
64
65
- if ( ! yes ) {
65
+ if ( ! tagOk ) {
66
66
return
67
67
}
68
68
@@ -84,6 +84,16 @@ async function main() {
84
84
step ( '\nGenerating the changelog...' )
85
85
await run ( 'yarn' , [ 'changelog' ] )
86
86
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
+
87
97
// Commit changes to the Git.
88
98
step ( '\nCommitting changes...' )
89
99
await run ( 'git' , [ 'add' , '-A' ] )
You can’t perform that action at this time.
0 commit comments