Skip to content

Commit

Permalink
Fix: [AEA-0000] - fix getting tag format in releaes pipeline (#479)
Browse files Browse the repository at this point in the history
## Summary

- Routine Change

### Details

- parse releaes.config.js to get release tag format instead of
.releaserc
  • Loading branch information
anthony-nhs authored Jul 4, 2024
1 parent a45d64d commit 82e19a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 82e19a0

Please sign in to comment.