Skip to content

fix: remove npm upgrade step, rely on pre-installed npm#53

Closed
piotrski wants to merge 9 commits intomainfrom
fix/remove-npm-upgrade
Closed

fix: remove npm upgrade step, rely on pre-installed npm#53
piotrski wants to merge 9 commits intomainfrom
fix/remove-npm-upgrade

Conversation

@piotrski
Copy link
Copy Markdown
Collaborator

@piotrski piotrski commented Apr 3, 2026

Summary

  • Removes the npm upgrade step entirely — the pre-installed npm from actions/setup-node should support OIDC provenance publishing
  • Keeps NPM_CONFIG_PROVENANCE: true on both the release and canary steps (added in the previous commit on main)

Test plan

  • Release pipeline passes without the npm upgrade step
  • Canary snapshot publishes successfully with OIDC

piotrski and others added 9 commits April 3, 2026 14:20
npm@latest started shipping a broken install (missing promise-retry)
causing the release job to fail before any actual work happens.
The runner already ships with a recent enough npm for OIDC publishing.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Without NPM_CONFIG_PROVENANCE=true, npm doesn't attempt OIDC auth and
immediately fails with ENEEDAUTH. The job already has id-token: write
so the OIDC exchange will work once provenance is enabled.

Note: the trusted publisher config on npmjs.com also needs to be
updated from piotrski/agent-react-devtools to
callstackincubator/agent-react-devtools to match the repo move.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds registry-url to setup-node so .npmrc is configured, passes
NPM_TOKEN to changesets/action for actual releases, and sets
NODE_AUTH_TOKEN for the canary snapshot step.

The secret was lost when the repo transferred to callstackincubator.
Add NPM_TOKEN as a repository secret to restore publishing.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
npm@latest broke with a missing promise-retry dependency, so we removed
the upgrade step. But that downgraded to the runner's npm 10.9.7 which
doesn't support OIDC trusted publishing (requires >= 11.5.1).

Pinning to npm@11 gets a stable 11.x release without the breakage.
Reverts the NPM_TOKEN workaround — OIDC is the correct approach here.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Switches from the default changelog generator to
@changesets/changelog-github, which adds contributor names and PR
links to each changelog entry automatically.
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

1 participant