Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,18 @@ jobs:
- name: Create release branch and PR
if: github.event_name == 'workflow_dispatch'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Use a PAT so the push and PR creation trigger CI workflows.
# GITHUB_TOKEN events don't trigger workflows (GitHub anti-recursion).
GH_TOKEN: ${{ secrets.RELEASE_PAT }}
run: |
OLD_VERSION="${{ steps.changes.outputs.old_version }}"
NEW_VERSION="${{ steps.bump.outputs.new_version }}"
VERSION_BUMP="${{ steps.ai.outputs.version_bump }}"
BRANCH="release/v${NEW_VERSION}"

# Configure git to push with the PAT
git remote set-url origin "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git"

git checkout -b "$BRANCH"
git add package.json package-lock.json CHANGELOG.md
git commit -m "v${NEW_VERSION}"
Expand Down