diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 2344fc05e0d..560c1ff4479 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -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 }}