Skip to content

Commit 3153c29

Browse files
committed
chore: versioning workflow fix
1 parent 3f56c1b commit 3153c29

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/update-stable.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ jobs:
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:

0 commit comments

Comments
 (0)