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 } . 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' ] )
You can’t perform that action at this time.
0 commit comments