File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed
Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 1515 pull-requests : read
1616
1717 steps :
18- - uses : actions/checkout@v3
18+ - uses : actions/checkout@v4
19+ with :
20+ fetch-depth : 0
21+ token : ${{ secrets.GITHUB_TOKEN }}
1922
2023 - name : Configure Git
2124 run : |
@@ -158,22 +161,23 @@ jobs:
158161
159162 - name : Commit Version Update
160163 run : |
161- git add package.json pnpm-lock.yaml
164+ git pull
165+ git add package.json pnpm-lock.yaml changelog.md
162166 git commit -m "chore: bump version to ${{ steps.bump_version.outputs.new_version }}"
163- git push main
167+ git push
164168
165169 - name : Update Stable Branch
166170 run : |
167171 # Ensure stable branch exists
168172 git checkout stable 2>/dev/null || git checkout -b stable
169173 git merge main --no-ff -m "chore: merge main into stable for version ${{ steps.bump_version.outputs.new_version }}"
170- git push stable
174+ git push --set-upstream origin stable
171175
172176 - name : Create and Push Tag
173177 run : |
174178 VERSION="v${{ steps.bump_version.outputs.new_version }}"
175179 git tag -a "$VERSION" -m "Release $VERSION"
176- git push "$VERSION"
180+ git push origin "$VERSION"
177181
178182 # - name: Create GitHub Release
179183 # env:
Original file line number Diff line number Diff line change 1- { "commit" : " cbad04f035f017a4797768c75e180f10920c0e17 " }
1+ { "commit" : " 3f706702b2486e72efe1602e710ccef6c387c82a " }
You can’t perform that action at this time.
0 commit comments