Skip to content

Use trusted npm publishing - #355

Merged
kevmo314 merged 1 commit into
mainfrom
agent/trusted-npm-publishing
Jul 30, 2026
Merged

Use trusted npm publishing#355
kevmo314 merged 1 commit into
mainfrom
agent/trusted-npm-publishing

Conversation

@kevmo314

Copy link
Copy Markdown
Collaborator

What changed

  • grant the npm publishing job GitHub OIDC token permission
  • run releases on Node 24 with an explicitly OIDC-capable npm 11 CLI
  • remove the expired NPM_TOKEN credential from the publish step
  • add the repository metadata npm validates against the trusted publisher
  • make the Rollup config compatible with Node 24 while preserving the same output paths

Why

The 1.2.4 release builds successfully, but npm rejects the repository's legacy token. The package is now configured on npm for trusted publishing from muxable/rtirl-obs via npm-publish.yml, so the workflow must authenticate with GitHub OIDC instead.

Impact

Merging this PR triggers the workflow on main; if 1.2.4 is still unpublished, it will build and publish @rtirl/api@1.2.4 without a long-lived npm token.

Validation

  • npm ci --ignore-scripts under Node 24.13.0 / npm 11.6.2
  • npm run build
  • npm pack --dry-run --json
  • git diff --check

@github-actions

Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit 05f4ec4):

(expires Thu, 06 Aug 2026 03:05:54 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 97736d8937dc1c35fa9cd85e09c8e5539fc44d09

@kevmo314
kevmo314 marked this pull request as ready for review July 30, 2026 03:12
@kevmo314
kevmo314 merged commit 9949713 into main Jul 30, 2026
2 checks passed
@kevmo314
kevmo314 deleted the agent/trusted-npm-publishing branch July 30, 2026 03:12
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