Skip to content

Commit

Permalink
fix: exit on no tag publish (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleTryon committed May 9, 2023
1 parent bbe846b commit d82dc25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scripts/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ function orbPublish() {
if [ "$ORB_PARAM_PUB_TYPE" == "production" ]; then
printf "Production release detected!\n"
if [ -z "$CIRCLE_TAG" ]; then
printf "No tag detected. Peacfully exiting.\n"
printf "No tag detected. Exiting.\n"
printf "If you are trying to publish a production orb, you must push a semantically versioned tag.\n"
exit 0
exit 1
fi
validateProdTag
ORB_RELEASE_VERSION="$(echo "${CIRCLE_TAG}" | grep -Eo "[0-9]+\.[0-9]+\.[0-9]+")"
Expand Down

0 comments on commit d82dc25

Please sign in to comment.