From 82e19a071221ae2bdaef563fe2d64a24deb73f1a Mon Sep 17 00:00:00 2001 From: anthony-nhs <121869075+anthony-nhs@users.noreply.github.com> Date: Thu, 4 Jul 2024 11:06:15 +0100 Subject: [PATCH] Fix: [AEA-0000] - fix getting tag format in releaes pipeline (#479) ## Summary - Routine Change ### Details - parse releaes.config.js to get release tag format instead of .releaserc --- .github/workflows/ci.yml | 2 +- .github/workflows/release.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3466de1f3..e3e6b6560 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -73,7 +73,7 @@ jobs: cat semantic-release-output.log exit 1 fi - tagFormat=$(jq -r .tagFormat .releaserc) + tagFormat=$(node -e "const config=require('./release.config.js'); console.log(config.tagFormat)") if [ "${tagFormat}" = "null" ] then tagFormat="v\${version}" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0e161fac3..68a5fae14 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -64,7 +64,7 @@ jobs: id: output_version_tag run: | NEXT_VERSION=$(npx semantic-release --dry-run | grep -i 'The next release version is' | sed -E 's/.* ([[:digit:].]+)$/\1/') - tagFormat=$(jq -r .tagFormat .releaserc) + tagFormat=$(node -e "const config=require('./release.config.js'); console.log(config.tagFormat)") if [ "${tagFormat}" = "null" ] then tagFormat="v\${version}"