From 9666950e36b6a1df450f8163d75a64cc04ae5ea6 Mon Sep 17 00:00:00 2001 From: Andrew Miner Date: Mon, 16 Nov 2015 20:28:12 -0800 Subject: [PATCH] Update publish script to commit new version number --- scripts/publish | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/scripts/publish b/scripts/publish index 4a3a1f9e3..f90cabc83 100755 --- a/scripts/publish +++ b/scripts/publish @@ -5,11 +5,6 @@ function die { exit 1 } -git checkout production \ - && git rebase master \ - && git push \ - && git checkout master - read -p "Major, minor, patch? " VERSION_TYPE if [[ "$VERSION_TYPE" == "" ]]; then exit 1 @@ -18,4 +13,13 @@ fi npm version "$VERSION_TYPE" || die "Invalid version type: $VERSION_TYPE" npm publish +git add package.json \ + && git commit -m "Update package version" \ + && git push \ + && git checkout production \ + && git rebase master \ + && git push \ + && git checkout master \ + || die "Could not publish changes" + grunt clean build