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() {
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 } with the "${ tag } " tag. Confirm?`
6363 } )
6464
65- if ( ! yes ) {
65+ if ( ! tagOk ) {
6666 return
6767 }
6868
@@ -82,6 +82,16 @@ async function main() {
8282 step ( '\nGenerating the changelog...' )
8383 await run ( 'yarn' , [ 'changelog' ] )
8484
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+
8595 // Commit changes to the Git.
8696 step ( '\nCommitting changes...' )
8797 await run ( 'git' , [ 'add' , '-A' ] )
You can’t perform that action at this time.
0 commit comments