Skip to content

Commit

Permalink
fix: Make orb release version regex greedy for patch versions (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
djenniex-gg authored Jan 3, 2023
1 parent ee50c68 commit 3643c8f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/jobs/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ parameters:
A Regular Expression to compare against `$CIRCLE_TAG` when publishing a production version of an orb.
Your tag must include a full semantic version number, which will be used to automatically version the published orb.
Ensure you CircleCI config is also properly configured to trigger for this tag pattern.
It is recommended to prefix or suffix around this pattern: '[0-9]+\.[0-9]+\.[0-9]'.
It is recommended to prefix or suffix around this pattern: '[0-9]+\.[0-9]+\.[0-9]+'.
default: '^v[0-9]+\.[0-9]+\.[0-9]+$'
type: string
circleci-token:
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function orbPublish() {
exit 0
fi
validateProdTag
ORB_RELEASE_VERSION="$(echo "${CIRCLE_TAG}" | grep -Eo "[0-9]+\.[0-9]+\.[0-9]")"
ORB_RELEASE_VERSION="$(echo "${CIRCLE_TAG}" | grep -Eo "[0-9]+\.[0-9]+\.[0-9]+")"
echo "Production version: ${ORB_RELEASE_VERSION}"
printf "\n"
publishOrb "${ORB_RELEASE_VERSION}"
Expand Down

0 comments on commit 3643c8f

Please sign in to comment.