From 2bf5dc4b3f97bf9aaef93e73c126c1221fdb544d Mon Sep 17 00:00:00 2001 From: Martin Reinhardt Date: Wed, 26 Oct 2016 21:26:22 +0200 Subject: [PATCH] automate release --- package.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 48f9eae..64a0c52 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,10 @@ "watch-test": "cross-env NODE_ENV=test karma start", "tslint": "tslint \"test/**/*.ts\" --exclude \"test/node_modules/**/*\"", "tsc": "tsc", - "jsdoc": "jsdoc -c ./jsdoc.json -t ./node_modules/ink-docstrap/template -R README.md ./etc" + "jsdoc": "jsdoc -c ./jsdoc.json -t ./node_modules/ink-docstrap/template -R README.md ./etc", + "release:major": "changelog -M && git add CHANGELOG.md && git commit -m 'updated CHANGELOG.md' && npm version major && git push origin && git push origin --tags", + "release:minor": "changelog -m && git add CHANGELOG.md && git commit -m 'updated CHANGELOG.md' && npm version minor && git push origin && git push origin --tags", + "release:patch": "changelog -p && git add CHANGELOG.md && git commit -m 'updated CHANGELOG.md' && npm version patch && git push origin && git push origin --tags" }, "dependencies": { "@types/core-js": "0.9.34", @@ -94,6 +97,7 @@ "@angular/platform-browser": "2.0.2", "@angular/platform-browser-dynamic": "2.0.2", "@angular/router": "3.0.2", + "generate-changelog": "1.0.2", "ink-docstrap": "1.3.0", "jasmine-node": "1.14.5", "jsdoc": "3.4.2",