diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index 8d0b402..4c38216 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -58,15 +58,19 @@ jobs: - name: Create conventional commit env: COMMIT_TYPE: ${{ steps.pr-type.outputs.type }} + BASE_REF: ${{ github.event.pull_request.base.ref }} run: | git config user.email "ci@github.com" git config user.name "GitHub CI" ORIGINAL_MSG=$(git log -1 --pretty=%s) git commit --allow-empty -m "${COMMIT_TYPE}: ${ORIGINAL_MSG}" + git push origin "HEAD:${BASE_REF}" - name: Run semantic-release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_EVENT_NAME: push + GITHUB_REF: refs/heads/${{ github.event.pull_request.base.ref }} run: npx semantic-release - name: Rewrite notes (cumulative, grouped, since last stable)