Skip to content
Merged
Show file tree
Hide file tree
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
22 changes: 8 additions & 14 deletions .github/workflows/backport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,14 @@ jobs:
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'backport-stable')
runs-on: ubuntu-latest
permissions:
contents: read
contents: write
pull-requests: write
issues: write
steps:
- name: Generate GitHub App Token
id: app-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.RELEASE_APP_ID }}
private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }}

- name: Checkout Repo
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ steps.app-token.outputs.token }}

- name: Setup pnpm
uses: pnpm/action-setup@v5
Expand Down Expand Up @@ -165,7 +159,7 @@ jobs:
if: steps.cherry-pick.outputs.status == 'conflict' && steps.ai-resolve.outputs.resolved == 'true'
id: backport-pr
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_TITLE: ${{ github.event.pull_request.title }}
PR_NUMBER: ${{ github.event.pull_request.number }}
run: |
Expand Down Expand Up @@ -195,7 +189,7 @@ jobs:
if: steps.cherry-pick.outputs.status == 'clean'
uses: actions/github-script@v7
with:
github-token: ${{ steps.app-token.outputs.token }}
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const originalSha = '${{ github.event.pull_request.merge_commit_sha }}'.slice(0, 7);
const cherryPickSha = '${{ steps.cherry-pick.outputs.cherry_pick_sha }}'.slice(0, 7);
Expand All @@ -210,7 +204,7 @@ jobs:
if: steps.cherry-pick.outputs.status == 'conflict' && steps.ai-resolve.outputs.resolved == 'true'
uses: actions/github-script@v7
with:
github-token: ${{ steps.app-token.outputs.token }}
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
await github.rest.issues.createComment({
owner: context.repo.owner,
Expand All @@ -223,7 +217,7 @@ jobs:
if: always() && steps.cherry-pick.outputs.status == 'conflict' && steps.ai-resolve.outputs.resolved != 'true'
uses: actions/github-script@v7
with:
github-token: ${{ steps.app-token.outputs.token }}
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const sha = '${{ github.event.pull_request.merge_commit_sha }}';
await github.rest.issues.createComment({
Expand All @@ -249,7 +243,7 @@ jobs:
if: always() && steps.cherry-pick.outputs.status != 'clean' && steps.cherry-pick.outputs.status != 'conflict'
uses: actions/github-script@v7
with:
github-token: ${{ steps.app-token.outputs.token }}
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const runUrl = `${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`;
await github.rest.issues.createComment({
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/dispatch-front-workflow-release-pr.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
name: Dispatch Front Workflow Release PR

# DISABLED: This workflow dispatches to vercel/front (cross-repo) which
# requires a GitHub App token. The Release App has been temporarily
# removed, so this workflow is disabled (all jobs gated on `if: false`)
# until the App is restored. See .github/workflows/release.yml and
# .github/workflows/backport.yml, which have also been updated to no
# longer rely on the Release App.
on:
pull_request:
types: [opened, synchronize, reopened, closed]
Expand All @@ -15,6 +21,7 @@ jobs:
dispatch-front-sync:
name: Dispatch Front Sync
if: >
false &&
startsWith(github.event.pull_request.head.ref, 'changeset-release/') &&
github.event.action != 'closed'
runs-on: ubuntu-latest
Comment on lines 23 to 27
Copy link

Copilot AI Apr 29, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the current if: false && ... gating, this workflow will still trigger on every matching pull_request event and create a run that immediately skips both jobs. If the intent is to fully disable it while the App is removed, consider disabling the triggers (e.g., temporarily switch on: to workflow_dispatch only, or comment out the pull_request trigger) to avoid noisy skipped runs and unnecessary Actions usage.

Copilot uses AI. Check for mistakes.
Expand Down Expand Up @@ -71,6 +78,7 @@ jobs:
dispatch-front-close:
name: Dispatch Front Close
if: >
false &&
startsWith(github.event.pull_request.head.ref, 'changeset-release/') &&
github.event.action == 'closed'
runs-on: ubuntu-latest
Expand Down
21 changes: 9 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ on:
branches:
- main
- stable
# Allow manual triggering from the Actions tab. Useful for re-running the
# release flow when a push from the default GITHUB_TOKEN (e.g. a clean
# cherry-pick from the backport workflow, or a merged "Version Packages"
# PR) does not automatically trigger this workflow.
workflow_dispatch:

concurrency: ${{ github.workflow }}-${{ github.ref }}

Expand All @@ -23,23 +28,15 @@ jobs:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
steps:
- name: Generate GitHub App Token
id: app-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.RELEASE_APP_ID }}
private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }}

- name: Checkout Repo
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ steps.app-token.outputs.token }}

- name: Configure Git identity
run: |
git config user.name "${{ steps.app-token.outputs.app-slug }}[bot]"
git config user.email "${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com"
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"

- name: Setup pnpm
uses: pnpm/action-setup@v5
Expand All @@ -63,12 +60,12 @@ jobs:
createGithubReleases: false
setupGitUser: false
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create GitHub Release
if: steps.changesets.outputs.published == 'true'
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PUBLISHED_PACKAGES: ${{ steps.changesets.outputs.publishedPackages }}
run: |
# Generate release notes (PUBLISHED_PACKAGES filters to only include packages from this release)
Expand Down
Loading