Skip to content

Commit

Permalink
generate changelog and publish on version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Oct 3, 2019
1 parent 88e16d9 commit 6765468
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,13 @@
},
"scripts": {
"test": "tap",
"changelog": "bash gen-changelog.sh",
"postversion": "npm run changelog && git add CHANGELOG.md && git commit -m 'update changelog - '${npm_package_version}"
"preversion": "npm test",
"postversion": "npm publish",
"prepublish": "npm run changelog",
"prechangelog": "bash gen-changelog.sh",
"changelog": "git add CHANGELOG.md",
"postchangelog": "git commit -m 'update changelog - '${npm_package_version}",
"postpublish": "git push origin --follow-tags"
},
"files": [
"which.js",
Expand Down

0 comments on commit 6765468

Please sign in to comment.