chore: fix workflow permission

This commit is contained in:
Anirban Kar 2024-12-13 14:41:39 +05:30
parent c73c264e77
commit 4961fc28c9

View File

@ -160,20 +160,20 @@ jobs:
run: | run: |
git add package.json pnpm-lock.yaml git add package.json pnpm-lock.yaml
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 origin main git push main
- 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 origin stable git push 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 origin "$VERSION" git push "$VERSION"
# - name: Create GitHub Release # - name: Create GitHub Release
# env: # env: