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\'', };