workflow: auto commit changelog on release

This commit is contained in:
Evan You
2018-02-02 17:44:10 -05:00
parent bbbe08337b
commit be64f4d749
+4 -1
View File
@@ -69,7 +69,10 @@ const release = async () => {
return pkg
}
}
}).pipe(fileStream)
}).pipe(fileStream).on('close', async () => {
await execa('git', ['add', '-A'], { stdio: 'inherit' })
await execa('git', ['commit', '-m', `chore: ${version} changelog`], { stdio: 'inherit' })
})
}
release().catch(err => {