Skip to content

Add staged npm publishing via GitHub Actions (OIDC)#178

Merged
patocallaghan merged 1 commit into
masterfrom
patoc/oidc-staged-publishing
Jun 10, 2026
Merged

Add staged npm publishing via GitHub Actions (OIDC)#178
patocallaghan merged 1 commit into
masterfrom
patoc/oidc-staged-publishing

Conversation

@patocallaghan

@patocallaghan patocallaghan commented Jun 10, 2026

Copy link
Copy Markdown
Member

Migrates npm publishing to a release-triggered GitHub Actions workflow using OIDC trusted publishing (no long-lived npm token) and npm's staged publishing. Stable releases go to the latest dist-tag; prereleases to next.

Also removes the CircleCI release job (which published via yarn semantic-release using a token). The CircleCI test job (format / lint / tests) is kept. Pins Node via .nvmrc (a deliberate major bump from the current version).

Release-process change: semantic-release previously automated version bump + changelog + publish on merge to the default branch. With it removed, releases are cut as GitHub Releases (the new workflow triggers on: release), and package.json's version must match the release tag. The workflow can't publish until a stage-only Trusted Publisher is registered for the package on npm. semantic-release is left as an unused devDependency that can be dropped in a follow-up.

@socket-security

socket-security Bot commented Jun 10, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedgithub/​actions/​checkout@​de0fac2e4500dabe0009e67214ff5f5447ce83dd99100100100100

View full report

@patocallaghan patocallaghan force-pushed the patoc/oidc-staged-publishing branch from 879c60e to 5da876c Compare June 10, 2026 10:30
@patocallaghan patocallaghan marked this pull request as ready for review June 10, 2026 10:56
@patocallaghan patocallaghan merged commit 9bbd823 into master Jun 10, 2026
4 checks passed
@patocallaghan patocallaghan deleted the patoc/oidc-staged-publishing branch June 10, 2026 12:22
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