From 3e84f0ec9149967877af2a60bde4d73517a61b53 Mon Sep 17 00:00:00 2001 From: Raed Bahri Date: Sat, 24 May 2025 01:51:43 +0100 Subject: [PATCH] ci: update release workflow --- .github/workflows/release.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 83ee5a2..84eee6a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -56,7 +56,6 @@ jobs: config-name: release-drafter.yml env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # Publish to npm when release is published publish_to_npm: name: Publish to npm @@ -71,7 +70,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.GITHUB_TOKEN }} - + ref: ${{ github.event.repository.default_branch }} - name: Set up Node.js for publishing uses: actions/setup-node@v4 with: @@ -98,8 +97,10 @@ jobs: # Run standard-version to update package.json and CHANGELOG.md npx standard-version --release-as $VERSION_WITHOUT_V --skip.tag - # Push changes back to the current branch + + # Push changes back to the current branch CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD) + echo "Current branch: $CURRENT_BRANCH" git push origin $CURRENT_BRANCH - name: Build project