Skip to content

Commit

Permalink
chore(release): commit package files automatically on release
Browse files Browse the repository at this point in the history
This fixes an issue with standard-version, see conventional-changelog/standard-version#315.
  • Loading branch information
jdbruijn committed Mar 29, 2019
1 parent e1b5842 commit 44e8d80
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -26,7 +26,8 @@
},
"standard-version": {
"scripts": {
"prerelease": "if [[ \"$(git rev-parse --abbrev-ref HEAD)\" != \"master\" ]]; then exit -1; fi"
"prerelease": "if [[ \"$(git rev-parse --abbrev-ref HEAD)\" != \"master\" ]]; then exit -1; fi",
"postcommit": "git add package.json package-lock.json"
}
},
"devDependencies": {
Expand Down

0 comments on commit 44e8d80

Please sign in to comment.