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 ""
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`
echo "New Version: $NEW_VERSION"
@@ -77,4 +77,4 @@ echo ""
echo "::set-output name=NEW_VERSION::$NEW_VERSION"
echo "::set-output name=PRERELEASE::$PRERELEASE"
exit 0
exit 0