[STG-1702] fix: pass GITHUB_TOKEN to changeset version step in release-cli workflow#1893
Merged
[STG-1702] fix: pass GITHUB_TOKEN to changeset version step in release-cli workflow#1893
Conversation
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>
|
seanmcguire12
approved these changes
Mar 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pnpm changeset versionstep inrelease-cli.ymlcalls@changesets/changelog-github, which fetches PR metadata from the GitHub API and requiresGITHUB_TOKENto authenticateenv: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}to the "Version browse-cli" stepFailed run: https://github.com/browserbase/stagehand/actions/runs/23624352586/job/68810210512
Test plan
Release CLIworkflow on main after merging and verify the version step succeeds🤖 Generated with Claude Code
Summary by cubic
Pass
GITHUB_TOKENto the changeset version step in the Release CLI workflow to authenticate@changesets/changelog-githuband prevent 403s during changelog generation. Addresses STG-xxx.env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}to the "Version browse-cli" step sopnpm changeset versioncan fetch PR metadata.Written for commit 2f49dfb. Summary will update on new commits. Review in cubic