npm-trusted-publishing
Installation
SKILL.md
Default output: return only the result, blockers, and required evidence. Omit preambles, process narration, repeated context, confidence scores, and follow-up offers. Use at most five bullets unless a required artifact or schema needs more.
npm Trusted Publishing
Publish npm packages from GitHub Actions without long-lived tokens. Uses OIDC for authentication and generates provenance attestations automatically.
How It Works
- GitHub Actions workflow runs on tag push
- Workflow requests short-lived OIDC token from GitHub
- npm exchanges OIDC token for publish token via registry
- Package publishes with provenance attestation (supply-chain security)
- No
NPM_TOKENsecret needed — ever