Add release wizard
This commit is contained in:
+13
-10
@@ -1,16 +1,19 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
const updateChangelog = require('basic-changelog')
|
||||
|
||||
const opts = {
|
||||
filterCommitsStartingWith: ['release:']
|
||||
}
|
||||
|
||||
updateChangelog('./CHANGELOG.md', opts, err => {
|
||||
if (err) {
|
||||
console.error('Something went wrong trying to update the changelog:')
|
||||
console.error(err)
|
||||
return
|
||||
}
|
||||
console.log('Changelog successfully updated')
|
||||
})
|
||||
module.exports = () => {
|
||||
return new Promise((resolve, reject) => {
|
||||
updateChangelog('./CHANGELOG.md', opts, err => {
|
||||
if (err) {
|
||||
console.error('Something went wrong trying to update the changelog:')
|
||||
reject(err)
|
||||
return
|
||||
}
|
||||
console.log('Changelog successfully updated')
|
||||
resolve()
|
||||
})
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user