Skip to content

Commit 2fecf66

Browse files
authored
Release: Semantic Release Fixes (#221)
1 parent c683a91 commit 2fecf66

1 file changed

Lines changed: 3 additions & 13 deletions

File tree

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

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -55,22 +55,12 @@ jobs:
5555
@semantic-release/release-notes-generator \
5656
@semantic-release/github
5757
58-
- name: Create conventional commit
59-
env:
60-
COMMIT_TYPE: ${{ steps.pr-type.outputs.type }}
61-
run: |
62-
git config user.email "ci@github.com"
63-
git config user.name "GitHub CI"
64-
ORIGINAL_MSG=$(git log -1 --pretty=%s)
65-
git commit --allow-empty -m "${COMMIT_TYPE}: ${ORIGINAL_MSG}"
66-
6758
- name: Run semantic-release
6859
env:
6960
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
70-
run: |
71-
unset GITHUB_ACTIONS
72-
unset GITHUB_EVENT_NAME
73-
npx semantic-release --branches ${{ github.event.pull_request.base.ref }}
61+
GITHUB_EVENT_NAME: push
62+
GITHUB_REF: refs/heads/${{ github.event.pull_request.base.ref }}
63+
run: npx semantic-release
7464

7565
- name: Rewrite notes (cumulative, grouped, since last stable)
7666
if: success()

0 commit comments

Comments
 (0)