From 1b99f81c04e53a238accf9df50ed7e2d3d675cc3 Mon Sep 17 00:00:00 2001 From: idok Date: Wed, 7 Aug 2019 17:48:07 +0300 Subject: [PATCH] add publish scripts --- package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index c3261ef..130619f 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,10 @@ "coveralls": "nyc report --reporter=text-lcov | coveralls", "lint": "eslint .", "test": "npm run lint && npm run unit-test", - "unit-test": "cross-env NODE_ENV=test nyc mocha tests/**/*.js --reporter=dot" + "unit-test": "cross-env NODE_ENV=test nyc mocha tests/**/*.js --reporter=dot", + "patch": "npm version patch -m\"update version to %s\" && git push && git push --tags", + "minor": "npm version minor -m\"update version to %s\" && git push && git push --tags", + "major": "npm version major -m\"update version to %s\" && git push && git push --tags" }, "files": [ "LICENSE",