From ccb587bc82fc5c3368ba623094802f7d929e9006 Mon Sep 17 00:00:00 2001 From: Ayush8923 <80516839+Ayush8923@users.noreply.github.com> Date: Wed, 17 Jun 2026 12:07:17 +0530 Subject: [PATCH] fix(*): semantic release issue --- .github/workflows/pre-release.yml | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index 89053cf..9cc9172 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -55,22 +55,12 @@ jobs: @semantic-release/release-notes-generator \ @semantic-release/github - - name: Create conventional commit - env: - COMMIT_TYPE: ${{ steps.pr-type.outputs.type }} - 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}" - - name: Run semantic-release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - unset GITHUB_ACTIONS - unset GITHUB_EVENT_NAME - npx semantic-release --branches ${{ github.event.pull_request.base.ref }} + 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) if: success()