mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-02-01 23:44:39 +00:00
chore: versioning workflow fix
This commit is contained in:
parent
3f56c1b9d6
commit
3153c29b97
14
.github/workflows/update-stable.yml
vendored
14
.github/workflows/update-stable.yml
vendored
@ -15,7 +15,10 @@ jobs:
|
||||
pull-requests: read
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Configure Git
|
||||
run: |
|
||||
@ -158,22 +161,23 @@ jobs:
|
||||
|
||||
- name: Commit Version Update
|
||||
run: |
|
||||
git add package.json pnpm-lock.yaml
|
||||
git pull
|
||||
git add package.json pnpm-lock.yaml changelog.md
|
||||
git commit -m "chore: bump version to ${{ steps.bump_version.outputs.new_version }}"
|
||||
git push main
|
||||
git push
|
||||
|
||||
- name: Update Stable Branch
|
||||
run: |
|
||||
# Ensure stable branch exists
|
||||
git checkout stable 2>/dev/null || git checkout -b stable
|
||||
git merge main --no-ff -m "chore: merge main into stable for version ${{ steps.bump_version.outputs.new_version }}"
|
||||
git push stable
|
||||
git push --set-upstream origin stable
|
||||
|
||||
- name: Create and Push Tag
|
||||
run: |
|
||||
VERSION="v${{ steps.bump_version.outputs.new_version }}"
|
||||
git tag -a "$VERSION" -m "Release $VERSION"
|
||||
git push "$VERSION"
|
||||
git push origin "$VERSION"
|
||||
|
||||
# - name: Create GitHub Release
|
||||
# env:
|
||||
|
Loading…
Reference in New Issue
Block a user