Skip to content

Commit

Permalink
Automate some more release tasks
Browse files Browse the repository at this point in the history
Ref #1339
  • Loading branch information
strugee committed Jun 15, 2017
1 parent d3d8820 commit 1b85b24
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@
"update-docs:copyright": "for i in README.md doc/pump.1; do sed -E \"s/2011-20[[:digit:]]{2}/2011-$(date +%Y)/g\" $i | sponge $i; done",
"update-docs:manpage": "sed \"s/^\\.TH PUMP 1.*$/.TH PUMP 1 \\\"$(date +'%d %B %Y')\\\" \\\"$npm_package_version\\\"/\" doc/pump.1 | sponge doc/pump.1",
"update-docs:readme": "sed \"s/^Version .*\\..*\\..*$/Version $npm_package_version/\" README.md | sponge README.md",
"version": "npm run update-docs && git add README.md doc/"
"prepublish": "npm run build",
"version": "npm run update-docs && git add README.md doc/",
"postversion": "git push origin v$npm_package_version && git push"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 1b85b24

Please sign in to comment.