mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-03-09 21:50:36 +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
|
pull-requests: read
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Configure Git
|
- name: Configure Git
|
||||||
run: |
|
run: |
|
||||||
@ -158,22 +161,23 @@ jobs:
|
|||||||
|
|
||||||
- name: Commit Version Update
|
- name: Commit Version Update
|
||||||
run: |
|
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 commit -m "chore: bump version to ${{ steps.bump_version.outputs.new_version }}"
|
||||||
git push main
|
git push
|
||||||
|
|
||||||
- name: Update Stable Branch
|
- name: Update Stable Branch
|
||||||
run: |
|
run: |
|
||||||
# Ensure stable branch exists
|
# Ensure stable branch exists
|
||||||
git checkout stable 2>/dev/null || git checkout -b stable
|
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 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
|
- name: Create and Push Tag
|
||||||
run: |
|
run: |
|
||||||
VERSION="v${{ steps.bump_version.outputs.new_version }}"
|
VERSION="v${{ steps.bump_version.outputs.new_version }}"
|
||||||
git tag -a "$VERSION" -m "Release $VERSION"
|
git tag -a "$VERSION" -m "Release $VERSION"
|
||||||
git push "$VERSION"
|
git push origin "$VERSION"
|
||||||
|
|
||||||
# - name: Create GitHub Release
|
# - name: Create GitHub Release
|
||||||
# env:
|
# env:
|
||||||
|
Loading…
Reference in New Issue
Block a user