Update publish script to commit new version number
This commit is contained in:
+9
-5
@@ -5,11 +5,6 @@ function die {
|
|||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
git checkout production \
|
|
||||||
&& git rebase master \
|
|
||||||
&& git push \
|
|
||||||
&& git checkout master
|
|
||||||
|
|
||||||
read -p "Major, minor, patch? " VERSION_TYPE
|
read -p "Major, minor, patch? " VERSION_TYPE
|
||||||
if [[ "$VERSION_TYPE" == "" ]]; then
|
if [[ "$VERSION_TYPE" == "" ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
@@ -18,4 +13,13 @@ fi
|
|||||||
npm version "$VERSION_TYPE" || die "Invalid version type: $VERSION_TYPE"
|
npm version "$VERSION_TYPE" || die "Invalid version type: $VERSION_TYPE"
|
||||||
npm publish
|
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
|
grunt clean build
|
||||||
|
|||||||
Reference in New Issue
Block a user