From 7754617c3992148bddf83a676f79ea150f6ec634 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jovan=20Kruni=C4=87?= Date: Wed, 29 May 2019 13:38:59 +0200 Subject: [PATCH] refactor: remove git push from the postversion script Closes #24 --- package.json | 3 ++- src/common.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 90c50dce..d9398905 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,9 @@ "documentation": "typedoc --includeDeclarations --excludeExternals --mode modules --out docs src", "install": "node lib/cli.js -p $INIT_CWD || true", "prepublishOnly": "npm ci && npm run build", - "postversion": "npm run changelog && git push && git push origin \"v$npm_package_version\"", + "postversion": "npm run changelog", "preversion": "npm run prepublishOnly", + "push": "git push && git push origin \"v$npm_package_version\"", "test": "echo \"Error: no test specified\" && exit 1", "tslint": "tslint -p tsconfig.json -c tslint.json 'src/**/*.ts'" }, diff --git a/src/common.ts b/src/common.ts index efc7d786..88771293 100644 --- a/src/common.ts +++ b/src/common.ts @@ -682,8 +682,9 @@ export function getRules(configuration: Configuration): Rules { /* tslint:disable-next-line:max-line-length */ changelog: 'conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md && git commit -m \'docs: update changelog\'', 'check-configuration': 'openstapps-configuration', - postversion: 'npm run changelog && git push && git push origin "v$npm_package_version"', + postversion: 'npm run changelog', preversion: 'npm run prepublishOnly', + push: 'git push && git push origin "v$npm_package_version"', tslint: 'tslint -p tsconfig.json -c tslint.json \'src/**/*.ts\'', };