Skip to content

Commit 212ab4a

Browse files
authored
Merge pull request #692 from thecodacus/versioning-workflow
chore: Versioning workflow
2 parents 3f70670 + 3153c29 commit 212ab4a

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
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:

app/commit.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "commit": "cbad04f035f017a4797768c75e180f10920c0e17" }
1+
{ "commit": "3f706702b2486e72efe1602e710ccef6c387c82a" }

0 commit comments

Comments
 (0)