fix(publish): exit if pushing to github failed

This commit is contained in:
Pedro S. Lopez
2022-08-15 03:42:06 -04:00
committed by GitHub
parent bb09bb74e7
commit c09a22c533

View File

@@ -57,7 +57,7 @@ echo "-----> BUMP VERSION"
echo "" echo ""
npm version $VERSION_ARGS || exit 1 npm version $VERSION_ARGS || exit 1
git push && git push --tags git push && git push --tags || exit 1
NEW_VERSION=`cat package.json | jq -r .version` NEW_VERSION=`cat package.json | jq -r .version`
echo "New Version: $NEW_VERSION" echo "New Version: $NEW_VERSION"