From cc8952f844071d96a2759efbaabd8a2519432d55 Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Thu, 27 Jun 2019 16:40:42 +0200 Subject: [PATCH] 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. --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 91c2f59..d303941 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "build-prod": "rm -rf release/* && ember build -prod --output-path release", "preversion": "npm test", "version": "npm run build-prod && git add release/", + "postversion": "git push origin master", "deploy": "git push 5apps master" }, "devDependencies": {