refactor: remove git push from the postversion script

Closes #24
This commit is contained in:
Jovan Krunić
2019-05-29 13:38:59 +02:00
parent cbee9b888c
commit 7754617c39
2 changed files with 4 additions and 2 deletions

View File

@@ -9,8 +9,9 @@
"documentation": "typedoc --includeDeclarations --excludeExternals --mode modules --out docs src", "documentation": "typedoc --includeDeclarations --excludeExternals --mode modules --out docs src",
"install": "node lib/cli.js -p $INIT_CWD || true", "install": "node lib/cli.js -p $INIT_CWD || true",
"prepublishOnly": "npm ci && npm run build", "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", "preversion": "npm run prepublishOnly",
"push": "git push && git push origin \"v$npm_package_version\"",
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 1",
"tslint": "tslint -p tsconfig.json -c tslint.json 'src/**/*.ts'" "tslint": "tslint -p tsconfig.json -c tslint.json 'src/**/*.ts'"
}, },

View File

@@ -682,8 +682,9 @@ export function getRules(configuration: Configuration): Rules {
/* tslint:disable-next-line:max-line-length */ /* 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\'', 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', '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', preversion: 'npm run prepublishOnly',
push: 'git push && git push origin "v$npm_package_version"',
tslint: 'tslint -p tsconfig.json -c tslint.json \'src/**/*.ts\'', tslint: 'tslint -p tsconfig.json -c tslint.json \'src/**/*.ts\'',
}; };