Skip to content

Commit 06abb00

Browse files
author
Robert Jackson
committed
Add easy release scripts to package.json.
1 parent 7d4fe1e commit 06abb00

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
"description": "Retrieve current sha and branch name from a git repo.",
55
"main": "index.js",
66
"scripts": {
7-
"test": "mocha tests"
7+
"test": "mocha tests",
8+
"preversion": "npm test",
9+
"postversion": "git push && git push --tags && npm publish"
810
},
911
"repository": {
1012
"type": "git",

0 commit comments

Comments
 (0)