@@ -55,11 +55,11 @@ jobs:
5555 # Get current version and bump it
5656 CURRENT_VERSION=$(node -p "require('./package.json').version")
5757 echo "Current version: $CURRENT_VERSION"
58-
58+
5959 # Bump version based on input
6060 npm version ${{ inputs.version_type }} --no-git-tag-version
6161 NEW_VERSION=$(node -p "require('./package.json').version")
62-
62+
6363 echo "New production version: $NEW_VERSION"
6464 echo "new_version=$NEW_VERSION" >> $GITHUB_OUTPUT
6565
@@ -68,17 +68,14 @@ jobs:
6868 git config --global user.name "github-actions[bot]"
6969 git config --global user.email "github-actions[bot]@users.noreply.github.com"
7070
71- - name : Commit production release state
71+ - name : Commit and push version bumpAdd commentMore actions
7272 run : |
73- # Add all changes (current state + version bump)
74- git add -A
75- git commit -m "Production Release v${{ steps.bump_version.outputs.new_version }} (codebuff)
76-
77- This commit captures the complete state being released for production,
78- including any uncommitted changes and the version bump.
79-
80- 🤖 Generated with Codebuff
81- Co-Authored-By: Codebuff <noreply@codebuff.com>"
73+ git stash
74+ git pull --rebase origin main
75+ git stash pop
76+ git add npm-app/release/package.json
77+ git commit -m "Bump version to ${{ needs.prepare-release.outputs.new_version }}"
78+ git push
8279
8380 - name : Create and push production tag
8481 run : |
0 commit comments