Skip to content

ci: upgrade npm in release.yml so Trusted Publishing works#50

Merged
techiejd merged 1 commit intomainfrom
fix/npm-version-for-trusted-publishing
Apr 21, 2026
Merged

ci: upgrade npm in release.yml so Trusted Publishing works#50
techiejd merged 1 commit intomainfrom
fix/npm-version-for-trusted-publishing

Conversation

@techiejd
Copy link
Copy Markdown
Owner

Summary

  • Node 20 on ubuntu-latest ships with npm 10.x
  • npm Trusted Publishing (OIDC) requires npm >= 11.5.1
  • Without the upgrade, changeset publish fails with 404s on npm publish even though the packages are configured as trusted publishers on npmjs.com

The last release workflow run after #47 merged failed exactly this way: all three packages at 0.7.2 have been versioned in-repo but never made it to the registry.

Test plan

  • Merge this PR
  • release.yml fires on push to main, finds no pending changesets, runs pnpm releasechangeset publish
  • Verify payloadcms-vectorize@0.7.2, @payloadcms-vectorize/pg@0.7.2, @payloadcms-vectorize/cf@0.7.2 land on npm

Node 20 ships with npm 10.x, but Trusted Publishing (OIDC) requires
npm >= 11.5.1. Without this, `changeset publish` hits 404 on the
registry because the OIDC token isn't accepted.
@techiejd techiejd merged commit 1c01df9 into main Apr 21, 2026
7 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.

1 participant