Skip to content

Commit

Permalink
ci: fix semantic-release hotfix hack
Browse files Browse the repository at this point in the history
The previous YAML was not parsed as expected and led to running the
`sed` command even when the `if` was false.
  • Loading branch information
cwillisf committed Feb 13, 2025
1 parent ea930ee commit 0629cab
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,9 @@ jobs:
with:
name: test-output
path: ./test-results/* # Both unit and integration test results
- run: |
if [[ ${{contains(github.ref, 'hotfix')}} ]]; then
sed -e "s|hotfix/REPLACE|${{ github.ref_name }}|" --in-place release.config.js
fi
- name: Hotfix hack for semantic-release
if: startsWith(github.ref, 'hotfix/')
run: sed -e "s|hotfix/REPLACE|${{ github.ref_name }}|" --in-place release.config.js
- name: Semantic Release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down

0 comments on commit 0629cab

Please sign in to comment.