1 parent 931158e commit a80d14eCopy full SHA for a80d14e
1 file changed
.github/workflows/pre-release.yml
@@ -58,15 +58,19 @@ jobs:
58
- name: Create conventional commit
59
env:
60
COMMIT_TYPE: ${{ steps.pr-type.outputs.type }}
61
+ BASE_REF: ${{ github.event.pull_request.base.ref }}
62
run: |
63
git config user.email "ci@github.com"
64
git config user.name "GitHub CI"
65
ORIGINAL_MSG=$(git log -1 --pretty=%s)
66
git commit --allow-empty -m "${COMMIT_TYPE}: ${ORIGINAL_MSG}"
67
+ git push origin "HEAD:${BASE_REF}"
68
69
- name: Run semantic-release
70
71
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
72
+ GITHUB_EVENT_NAME: push
73
+ GITHUB_REF: refs/heads/${{ github.event.pull_request.base.ref }}
74
run: npx semantic-release
75
76
- name: Rewrite notes (cumulative, grouped, since last stable)
0 commit comments