[STG-1702] fix: pass GITHUB_TOKEN to changeset version step in release-cli workflow

Merged
SH
8mo ago
+2-0

Summary

  • The pnpm changeset version step in release-cli.yml calls @changesets/changelog-github, which fetches PR metadata from the GitHub API and requires GITHUB_TOKEN to authenticate
  • The token was only passed to the "Commit version bump and tag" step, so the version step failed with a 403 when trying to generate changelogs
  • Added env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} to the "Version browse-cli" step

Failed run: https://github.com/browserbase/stagehand/actions/runs/23624352586/job/68810210512

Test plan

  • Trigger the Release CLI workflow on main after merging and verify the version step succeeds

🤖 Generated with Claude Code


Summary by cubic

Pass GITHUB_TOKEN to the changeset version step in the Release CLI workflow to authenticate @changesets/changelog-github and prevent 403s during changelog generation. Addresses STG-xxx.

  • Bug Fixes
    • Added env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} to the "Version browse-cli" step so pnpm changeset version can fetch PR metadata.