diff --git a/Makefile b/Makefile index 28fdff6..188e1cc 100644 --- a/Makefile +++ b/Makefile @@ -6,3 +6,21 @@ install: .git/hooks/pre-push .git/hooks/pre-push: script/hook.sh cp $< $@ + +release-patch: + $(shell npm bin)/mversion patch -m + git push origin master + git push origin --tags + npm publish + +release-minor: + $(shell npm bin)/mversion minor -m + git push origin master + git push origin --tags + npm publish + +release-major: + $(shell npm bin)/mversion major -m + git push origin master + git push origin --tags + npm publish diff --git a/package.json b/package.json index 74f70ea..7122b30 100644 --- a/package.json +++ b/package.json @@ -43,6 +43,7 @@ "jscoverage": "~0.5.9", "mocha": "~2.2.5", "mocha-lcov-reporter": "~0.0.2", + "mversion": "^1.10.1", "underscore": "~1.8.3" }, "dependencies": {}