Skip to content

Publish to npm via trusted publishing (OIDC) - #59

Merged
tjdavey merged 1 commit into
mainfrom
npm-trusted-publishing
Aug 26, 2026
Merged

tjdavey merged 1 commit into
mainfrom
npm-trusted-publishing

Conversation

@tjdavey

@tjdavey tjdavey commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

Replaces the long-lived npm token in the release pipeline with GitHub Actions OIDC Trusted Publishing, so releases authenticate to npm without a stored credential.

Trusted publishers are already configured on npmjs.com for the published packages.

Follow-ups

  • NPM_TOKEN is now unreferenced and can be deleted once a release goes green. Keep NPM_AUTH_TOKEN — build.yml still uses it, though this repo has no private dependencies, so that step looks removable in a later change.

Replace the long-lived npm token in the release workflow with GitHub
Actions OIDC. Adds the id-token permission, drops the NPM_TOKEN env and
the ~/.npmrc write, and moves the release job to Node 22 with npm@latest,
since trusted publishing requires npm >= 11.5.1.

Adds repository metadata to the published packages, which npm requires
when generating provenance, and bumps CI to Node 20.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Aug 26, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 7b1daf6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages
Name Type
@ordermentum/asap-test-helpers Patch
@ordermentum/express-asap Patch
@ordermentum/asap-core Patch
@ordermentum/axios-asap Patch
@ordermentum/hapi-asap Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@tjdavey tjdavey changed the title ci: publish to npm via trusted publishing (OIDC) Publish to npm via trusted publishing (OIDC) Aug 26, 2026
@tjdavey
tjdavey merged commit a44b0ef into main Aug 26, 2026
1 check 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.

2 participants