From 3643c8f3bf2d022f3477b142ffd87a5981a5666d Mon Sep 17 00:00:00 2001 From: Dave Jenniex <101210544+djenniex-gg@users.noreply.github.com> Date: Tue, 3 Jan 2023 14:10:23 -0330 Subject: [PATCH] fix: Make orb release version regex greedy for patch versions (#183) --- src/jobs/publish.yml | 2 +- src/scripts/publish.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jobs/publish.yml b/src/jobs/publish.yml index 190b394c..797069a9 100644 --- a/src/jobs/publish.yml +++ b/src/jobs/publish.yml @@ -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: diff --git a/src/scripts/publish.sh b/src/scripts/publish.sh index d1494c93..ca0e905d 100644 --- a/src/scripts/publish.sh +++ b/src/scripts/publish.sh @@ -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}"