Skip to content

Commit a80d14e

Browse files
authored
Release: Semantic Release Updates (#218)
1 parent 931158e commit a80d14e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎.github/workflows/pre-release.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,19 @@ jobs:
5858
- name: Create conventional commit
5959
env:
6060
COMMIT_TYPE: ${{ steps.pr-type.outputs.type }}
61+
BASE_REF: ${{ github.event.pull_request.base.ref }}
6162
run: |
6263
git config user.email "ci@github.com"
6364
git config user.name "GitHub CI"
6465
ORIGINAL_MSG=$(git log -1 --pretty=%s)
6566
git commit --allow-empty -m "${COMMIT_TYPE}: ${ORIGINAL_MSG}"
67+
git push origin "HEAD:${BASE_REF}"
6668
6769
- name: Run semantic-release
6870
env:
6971
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
72+
GITHUB_EVENT_NAME: push
73+
GITHUB_REF: refs/heads/${{ github.event.pull_request.base.ref }}
7074
run: npx semantic-release
7175

7276
- name: Rewrite notes (cumulative, grouped, since last stable)

0 commit comments

Comments
 (0)