Skip to content

fix(apps-npm-release): give snapshot changeset version a GITHUB_TOKEN#47

Merged
MaximusHaximus merged 1 commit into
mainfrom
fix/snapshot-changelog-github-token
Jul 1, 2026
Merged

fix(apps-npm-release): give snapshot changeset version a GITHUB_TOKEN#47
MaximusHaximus merged 1 commit into
mainfrom
fix/snapshot-changelog-github-token

Conversation

@MaximusHaximus

Copy link
Copy Markdown
Contributor

Problem

The Apps Team default changelog formatter is now @changesets/changelog-github (rolled out across repos recently). That formatter calls the GitHub API via @changesets/get-github-info during changeset version and aborts without a GITHUB_TOKEN.

The release job sets GITHUB_TOKEN on the changesets/action step, but the snapshot job runs changeset version --snapshot directly with only SNAPSHOT_TAG in its env — so every canary/snapshot publish now fails at the version step for any changelog-github repo:

🦋 error Please create a GitHub personal access token ... with read:user and repo:status ...
   at @changesets/get-github-info/...

(Hit live dispatching a matic.js canary on its keep-alive fix branch.)

Fix

Add read-only GITHUB_TOKEN: ${{ github.token }} to the snapshot job's Version snapshot step. The snapshot job never commits or pushes (--no-git-tag), so the default token's read scope is sufficient — no app token needed.

Scope

Repairs canary/snapshot publishing for all changelog-github consumers (api-gateway, balance-api, gas-station, lst-api, pos-airdrop, staker-pool-allocations, subgraphs, static, matic.js, apps-team-packages, proof-generation-api, and the template). Standard push-triggered releases are unaffected.

Repos on @changesets/changelog-github (now the Apps Team default) invoke the
GitHub API via @changesets/get-github-info during `changeset version`, which
aborts without a token. The release job sets GITHUB_TOKEN on changesets/action,
but the snapshot job runs `changeset version --snapshot` directly with only
SNAPSHOT_TAG in its env, so canary/snapshot publishes fail for every
changelog-github repo. Add read-only `github.token` (the snapshot job never
commits or pushes, so no app token is needed).
@MaximusHaximus MaximusHaximus marked this pull request as ready for review June 29, 2026 13:41
@sonarqubecloud

Copy link
Copy Markdown

@claude

claude Bot commented Jun 29, 2026

Copy link
Copy Markdown

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

1 similar comment
@claude

claude Bot commented Jun 29, 2026

Copy link
Copy Markdown

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

@shan8851 shan8851 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@MaximusHaximus MaximusHaximus merged commit 9a6ef51 into main Jul 1, 2026
11 checks passed
@MaximusHaximus MaximusHaximus deleted the fix/snapshot-changelog-github-token branch July 1, 2026 14:07
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