Skip to content

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

Merged
shrey150 merged 1 commit intomainfrom
shrey/fix-release-cli-token
Mar 27, 2026
Merged

[STG-1702] fix: pass GITHUB_TOKEN to changeset version step in release-cli workflow#1893
shrey150 merged 1 commit intomainfrom
shrey/fix-release-cli-token

Conversation

@shrey150
Copy link
Contributor

@shrey150 shrey150 commented Mar 27, 2026

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.

Written for commit 2f49dfb. Summary will update on new commits. Review in cubic

The `pnpm changeset version` step calls `@changesets/changelog-github`
which needs GITHUB_TOKEN to fetch PR metadata from the GitHub API. The
token was only passed to the git push step, causing the version step to
fail with a 403.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@changeset-bot
Copy link

changeset-bot bot commented Mar 27, 2026

⚠️ No Changeset found

Latest commit: 2f49dfb

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

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

Click here to learn what changesets are, and how to add one.

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

@shrey150 shrey150 changed the title [STG-xxx] fix: pass GITHUB_TOKEN to changeset version step in release-cli workflow [STG-1702] fix: pass GITHUB_TOKEN to changeset version step in release-cli workflow Mar 27, 2026
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 1 file

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

@shrey150 shrey150 merged commit cb6ae48 into main Mar 27, 2026
34 checks passed
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.

2 participants