chore: add comfirmation step on release after generating the changelog

pull/139/head
Kia King Ishii 4 years ago
parent 7f99f3a260
commit 1c294172ac

@ -52,13 +52,13 @@ async function main() {
console.log(tag)
const { yes } = await prompt({
const { yes: tagOk } = await prompt({
type: 'confirm',
name: 'yes',
message: `Releasing v${targetVersion} with the "${tag}" tag. Confirm?`
})
if (!yes) {
if (!tagOk) {
return
}
@ -74,6 +74,16 @@ async function main() {
step('\nGenerating the changelog...')
await run('yarn', ['changelog'])
const { yes: changelogOk } = await prompt({
type: 'confirm',
name: 'yes',
message: `Changelog generated. Does it look good?`
})
if (!changelogOk) {
return
}
// Commit changes to the Git.
step('\nCommitting changes...')
await run('git', ['add', '-A'])

Loading…
Cancel
Save