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