ci: wire OIDC trusted publishing to npm#2
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements docs/superpowers/specs/2026-07-18-oidc-trusted-publishing-design.md.
What changed
.github/workflows/publish.yml: new workflow, fires onrelease: published, runs against thenpm-publishGitHub Environment, checks out the tagged commit, sanity-checks tag ↔package.jsonversion, and runsnpm publish --provenanceusing an OIDC token (noNPM_TOKENsecret).package.json:publishConfigblock added with"access": "public"(required for scoped packages) and"provenance": true.What did NOT change
lib/,dist/,dependencies,devDependencies,package-lock.json,engines.node.tests.yml) — same trigger, same matrix.NPM_TOKENsecret is added or referenced anywhere.Out-of-tree setup required BEFORE the workflow can actually publish
See the spec (Sections 1–3) and plan (Tasks 4–6). This PR is safe to merge without them — the workflow only fires on
release: published, which is a deliberate later act.@pkg-nec/exceljswith Organization=pkg-nec, Repository=exceljs, Workflow=publish.yml, Environment=npm-publish.npm-publishwith reviewermaw629and deployment rulesBranch: main+Tag: v*.*.*.main(PR required + all five CI checks).Live verification
The
4.4.1publish (Tasks 7–8 in the plan) is the end-to-end proof of the trust chain.