Skip to content

ci: publish to npm via OIDC trusted publishing (no token)#14

Merged
billfreeman44 merged 1 commit into
masterfrom
chore/oidc-publish
Jul 5, 2026
Merged

ci: publish to npm via OIDC trusted publishing (no token)#14
billfreeman44 merged 1 commit into
masterfrom
chore/oidc-publish

Conversation

@billfreeman44

Copy link
Copy Markdown
Member

Switches the npmjs publish job to OIDC trusted publishing (no token, immune to the org's 2FA-on-writes, adds provenance). Proven on mw-phi (@pureskillgg/phi@6.0.2 published via OIDC).

Add the one-time Trusted Publisher on npmjs: package @pureskillgg/docsSettings → Trusted Publisher → GitHub Actionspureskillgg/docs, workflow publish.yml.

Changes: workflow permissions: id-token: write, npm install -g npm@latest (OIDC needs npm ≥11.5), drop NODE_AUTH_TOKEN from the npm job, add workflow_dispatch. GitHub Packages + gh-pages jobs unchanged.

🤖 Generated with Claude Code

The @pureskillgg npm org enforces 2FA on writes at a tier that rejects token
bypass (NPM_TOKEN -> EOTP in CI). Switch the npmjs job to OIDC trusted
publishing: workflow permissions id-token: write, upgrade npm to >=11.5, drop
NODE_AUTH_TOKEN from the npm job (OIDC handles auth + provenance), add
workflow_dispatch. Proven on mw-phi. GitHub Packages + gh-pages jobs unchanged.
Requires a one-time Trusted Publisher on the npmjs package.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@billfreeman44 billfreeman44 requested a review from a team as a code owner July 5, 2026 17:46
@billfreeman44 billfreeman44 merged commit 7fd08de into master Jul 5, 2026
5 checks passed
@billfreeman44 billfreeman44 deleted the chore/oidc-publish branch July 5, 2026 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant