Skip to content

[backport] [ci] Stop using Release App token + bump pnpm/action-setup#1913

Merged
TooTallNate merged 5 commits into
peter/backport-tanstack-start-1875-1907from
nate/backport-release-app-token-removal-stable
May 4, 2026
Merged

[backport] [ci] Stop using Release App token + bump pnpm/action-setup#1913
TooTallNate merged 5 commits into
peter/backport-tanstack-start-1875-1907from
nate/backport-release-app-token-removal-stable

Conversation

@TooTallNate
Copy link
Copy Markdown
Member

Summary

The Release job on stable is failing at the Generate GitHub App Token step because the Release App was temporarily removed:

Failed to create token for "workflow" (attempt 4): Integration not found
GET https://api.github.com/repos/vercel/workflow/installation -> 404

This was already addressed on main in #1866 + #1867 (and #1785 for the related pnpm/action-setup upgrade), but the changes were never backported to stable. This PR cherry-picks all three.

Example failing run: https://github.com/vercel/workflow/actions/runs/25303132457/job/74173639841

Cherry-picked commits

In order:

  1. ci: upgrade pnpm/action-setup to v5 and read version from package.json #1785ci: upgrade pnpm/action-setup to v5 and read version from package.json

    • Replaces pnpm/action-setup@v3 + explicit version: 10.14.0 with @v5 (reads packageManager field from package.json, currently pinned at 10.20.0).
    • Conflicts resolved:
      • .github/workflows/backport.yml: doesn't exist on stable (main-only file) → git rm.
      • .github/workflows/docs-checks.yml and .github/workflows/lint.yml: stable's versions are intentionally stripped to no-op stubs (if: false + - run: true). Kept stable's stub bodies; nothing to upgrade since neither uses pnpm/action-setup in those stubs.
  2. ci: stop using Release App token in release workflows #1866ci: stop using Release App token in release workflows

    • .github/workflows/release.yml: removes the Generate GitHub App Token step, switches GITHUB_TOKEN to secrets.GITHUB_TOKEN everywhere, hardcodes git identity to github-actions[bot], adds workflow_dispatch trigger for manual re-runs.
    • .github/workflows/dispatch-front-workflow-release-pr.yml: gates both jobs on if: false && since the cross-repo dispatch to vercel/front requires the App token. (Backport-only file backport.yml skipped — doesn't exist on stable.)
  3. ci: use GitHub API commit mode for changesets action #1867ci: use GitHub API commit mode for changesets action

    • Adds commitMode: github-api to the changesets/action@v1 invocation so commits are GPG-signed via the API (required by org-level branch rulesets that mandate verified signatures on all branches).

Verification

After cherry-pick, release.yml is byte-identical to main:

diff <(git show HEAD:.github/workflows/release.yml) <(gh api 'repos/vercel/workflow/contents/.github/workflows/release.yml?ref=main' -H 'Accept: application/vnd.github.raw+json')
# (no output)

Other touched files (debug-windows.yml, tests.yml, setup-workflow-dev/action.yml) have remaining diffs vs main but those are pre-existing stable-vs-main divergences (e.g., stable's tests.yml triggers on both main and stable branches; main's setup-workflow-dev has a newer cache-pnpm input added by an unrelated PR). None of those are in scope for the App token fix.

dispatch-front-workflow-release-pr.yml has a separate divergence in the wait-for-vercel-project action API shape (stable uses the older team-id/project-id/vercel-token form, main uses the newer project-slug form) — but both versions are now fully disabled via if: false, so the inner divergence doesn't matter until the App is restored.

Caveats (carried over from #1866's PR description)

GitHub Actions' default GITHUB_TOKEN does not trigger downstream workflow runs:

  1. The "Version Packages" PR created by changesets won't auto-trigger required CI checks. Push an empty commit, or close/reopen the PR, to kick off CI before merging.
  2. After merging a "Version Packages" PR, the Release workflow won't auto-run. Use the workflow_dispatch trigger from the Actions tab to publish.

Copilot AI review requested due to automatic review settings May 4, 2026 09:04
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 4, 2026

🦋 Changeset detected

Latest commit: 41047e5

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 4, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
example-nextjs-workflow-turbopack Ready Ready Preview, Comment May 4, 2026 6:03pm
example-nextjs-workflow-webpack Ready Ready Preview, Comment May 4, 2026 6:03pm
example-workflow Ready Ready Preview, Comment May 4, 2026 6:03pm
workbench-astro-workflow Ready Ready Preview, Comment May 4, 2026 6:03pm
workbench-express-workflow Ready Ready Preview, Comment May 4, 2026 6:03pm
workbench-fastify-workflow Ready Ready Preview, Comment May 4, 2026 6:03pm
workbench-hono-workflow Ready Ready Preview, Comment May 4, 2026 6:03pm
workbench-nitro-workflow Ready Ready Preview, Comment May 4, 2026 6:03pm
workbench-nuxt-workflow Ready Ready Preview, Comment May 4, 2026 6:03pm
workbench-sveltekit-workflow Ready Ready Preview, Comment May 4, 2026 6:03pm
workbench-tanstack-start-workflow Ready Ready Preview, Comment May 4, 2026 6:03pm
workbench-vite-workflow Ready Ready Preview, Comment May 4, 2026 6:03pm
workflow-docs Ready Ready Preview, Comment, Open in v0 May 4, 2026 6:03pm
workflow-swc-playground Ready Ready Preview, Comment May 4, 2026 6:03pm
workflow-tarballs Ready Ready Preview, Comment May 4, 2026 6:03pm
workflow-web Ready Ready Preview, Comment May 4, 2026 6:03pm

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 4, 2026

🧪 E2E Test Results

Some tests failed

Summary

Passed Failed Skipped Total
❌ ▲ Vercel Production 900 1 67 968
✅ 🪟 Windows 88 0 0 88
Total 988 1 67 1056

❌ Failed Tests

▲ Vercel Production (1 failed)

vite (1 failed):

  • DurableAgent e2e instructions string instructions are passed to the model

Details by Category

❌ ▲ Vercel Production
App Passed Failed Skipped
✅ astro 81 0 7
✅ example 81 0 7
✅ express 81 0 7
✅ fastify 81 0 7
✅ hono 81 0 7
✅ nextjs-turbopack 86 0 2
✅ nextjs-webpack 86 0 2
✅ nitro 81 0 7
✅ nuxt 81 0 7
✅ sveltekit 81 0 7
❌ vite 80 1 7
✅ 🪟 Windows
App Passed Failed Skipped
✅ nextjs-turbopack 88 0 0

📋 View full workflow run


Some E2E test jobs failed:

  • Vercel Prod: failure
  • Local Dev: skipped
  • Local Prod: skipped
  • Local Postgres: skipped
  • Windows: success

Check the workflow run for details.

@socket-security
Copy link
Copy Markdown

socket-security Bot commented May 4, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedgithub/​pnpm/​action-setup@​a3252b78c470c02df07e9d59298aecedc3ccdd6d ⏵ a8198c4bff370c8506180b035930dea56dbd528898 +9100100100100

View full report

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Backports CI workflow updates to the stable branch to unblock releases after the “Release App” GitHub App was removed, by eliminating the dependency on an App-generated token and aligning pnpm setup with the repo’s pinned pnpm version in package.json.

Changes:

  • Remove the “Generate GitHub App Token” step from the release workflow and switch all auth to secrets.GITHUB_TOKEN, adding workflow_dispatch for manual release reruns.
  • Configure changesets/action@v1 to use commitMode: github-api to satisfy “verified signature required” branch rules.
  • Bump pnpm/action-setup from v3 to v5 (and stop hardcoding pnpm version) across affected workflows and the setup-workflow-dev composite action.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
.github/workflows/tests.yml Updates pnpm setup to pnpm/action-setup@v5 in jobs that install pnpm directly.
.github/workflows/release.yml Removes GitHub App token usage, adds manual dispatch trigger, uses GitHub API commit mode for signed commits, and upgrades pnpm setup.
.github/workflows/dispatch-front-workflow-release-pr.yml Disables cross-repo dispatch jobs (still present but gated behind if: false &&).
.github/workflows/debug-windows.yml Upgrades pnpm setup to pnpm/action-setup@v5.
.github/actions/setup-workflow-dev/action.yml Removes the pnpm-version input and upgrades pnpm setup to pnpm/action-setup@v5.
.changeset/backport-release-app-token-removal.md Adds a changeset note describing the backported CI changes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/dispatch-front-workflow-release-pr.yml Outdated
TooTallNate and others added 5 commits May 4, 2026 10:59
#1785)

* ci: upgrade pnpm/action-setup to v6 and read version from package.json

Removes hardcoded pnpm version (10.14.0) from all workflows and instead
reads the version from the packageManager field in package.json, so CI
stays in sync with the version used locally.

* ci: update setup-workflow-dev composite action to use pnpm/action-setup@v6

Also removes the pnpm-version input since the action now reads the
version from package.json#packageManager.

* ci: downgrade pnpm/action-setup to v5

v6 installs pnpm 11 RC/beta, which has a regression
(pnpm/pnpm#11264, pnpm/action-setup#225/#227/#228) that causes
'ERR_PNPM_BROKEN_LOCKFILE: expected a single document in the stream'
when the project's packageManager pins a 10.x pnpm version. v5 is the
latest stable release before v6 and supports reading the version from
package.json#packageManager.
The Release App has been temporarily removed. Switch the Release and
Backport workflows to use the default GITHUB_TOKEN, and disable the
cross-repo Front dispatch workflow until the App is restored.

Also add a workflow_dispatch trigger to release.yml so the Version
Packages PR can be created/updated manually (since pushes made by
GITHUB_TOKEN do not trigger downstream workflow runs).
The repo enforces "Commits must have verified signatures" via an
org/enterprise-level ruleset, which blocks unsigned commits pushed via
the Git CLI by GITHUB_TOKEN. Switching the changesets action to
commitMode: github-api makes commits GPG-signed by GitHub.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Nathan Rajlich <n@n8.io>
@TooTallNate TooTallNate force-pushed the nate/backport-release-app-token-removal-stable branch from 6aa4c2c to 41047e5 Compare May 4, 2026 17:59
@TooTallNate TooTallNate changed the base branch from stable to peter/backport-tanstack-start-1875-1907 May 4, 2026 17:59
@TooTallNate TooTallNate merged commit 0c4f962 into peter/backport-tanstack-start-1875-1907 May 4, 2026
9 checks passed
@TooTallNate TooTallNate deleted the nate/backport-release-app-token-removal-stable branch May 4, 2026 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants