Skip to content

Commit

Permalink
ci: auto commit changelog after publish
Browse files Browse the repository at this point in the history
  • Loading branch information
ulivz committed Nov 29, 2018
1 parent c52e4b8 commit ca6ad3c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,10 @@ const release = async () => {
console.log(`lerna ${releaseArguments.join(' ')}`)

await execa(require.resolve('lerna/bin/lerna'), releaseArguments, { stdio: 'inherit' })

await execa('yarn', ['changelog'])
await execa('git', ['add', '-A'], { stdio: 'inherit' })
await execa('git', ['commit', '-m', `chore: ${version} changelog`], { stdio: 'inherit' })
}

release().catch(err => {
Expand Down

0 comments on commit ca6ad3c

Please sign in to comment.