From 350cdc247583840a4e1ebf7c0a2dda872d67f5a9 Mon Sep 17 00:00:00 2001 From: Ivar Date: Thu, 16 Jun 2016 17:38:58 +0200 Subject: [PATCH] add release scripts --- package.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 733314b9ef..30410af318 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,11 @@ "coverage": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec", "coverage-report": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage", "jest": "jest", - "lint": "eslint . --ignore-path .gitignore" + "lint": "eslint . --ignore-path .gitignore", + "release:patch": "npm version patch && npm run push-package-publish", + "release:minor": "npm version minor && npm run push-package-publish", + "release:major": "npm version major && npm run push-package-publish", + "push-package-publish": "git push --follow-tags && npm publish" }, "dependencies": { "bluebird": "2.9.14",