Ensure share repo is updated when versioning
Currently, it's easy to forget manually pushing to master after versioning/building. In which case things can be merged remotely, and when pulling with rebase the version commit ends up being changed and behind what was actually tagged. This adds a postversion script which simply pushes to the remote automatically after the version commit and tag have been added by npm.
This commit is contained in:
@@ -20,6 +20,7 @@
|
|||||||
"build-prod": "rm -rf release/* && ember build -prod --output-path release",
|
"build-prod": "rm -rf release/* && ember build -prod --output-path release",
|
||||||
"preversion": "npm test",
|
"preversion": "npm test",
|
||||||
"version": "npm run build-prod && git add release/",
|
"version": "npm run build-prod && git add release/",
|
||||||
|
"postversion": "git push origin master",
|
||||||
"deploy": "git push 5apps master"
|
"deploy": "git push 5apps master"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
Reference in New Issue
Block a user