diff --git a/.github/workflows/release-and-publish.yml b/.github/workflows/release-and-publish.yml index b9040db..24a63ee 100644 --- a/.github/workflows/release-and-publish.yml +++ b/.github/workflows/release-and-publish.yml @@ -40,9 +40,11 @@ jobs: - name: Run semantic-release env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # Set the branch via environment variable + SEMANTIC_RELEASE_BRANCH: release-main run: | - semantic-release version --branch release-main - semantic-release publish --branch release-main + semantic-release version + semantic-release publish - name: Push release branch run: git push origin release-main