node-release
Skill1 starsChanged 3 months agoMITView on GitHub
Cuts and automates npm releases - Changesets, semantic-release or release-please, npm trusted publishing (OIDC) with provenance, the first-publish bootstrap, staged publishing, changelogs and tags. Use when the user asks to release, version, publish to npm, or remove tokens from publish workflows. Not for package exports/bundling artifacts or verifying dependency provenance.
In this repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- add-skillSkill
- publish-repoSkill
- nextjs-qualitySkill
- node-ciSkill
- node-lintSkill
- node-packagingSkill
- node-supply-chainSkill
- node-testingSkill
- node-typescriptSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 21
Test/lint CI → node-ci.
- Distinctive: line 64
All npm-side specifics (minimums, staged publishing, token lifetimes) drift: the playbook version-gates each with its primary source — …
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
node-release
Automates versioning and npm publishing with no long-lived secrets and no
guessed facts. The failures this skill fixes: models wire NPM_TOKEN secrets
in 2026, miss that a package's first version can't be published via OIDC, get
the trusted-publisher registration subtly wrong (case, filename, indirection),
and leave releases half-done when publish fails after tagging.
When NOT to use
- Exports maps, bundling, tarball contents →
node-packaging(release assumes its gates already pass). - Verifying dependencies' provenance →
node-supply-chain. - Test/lint CI →
node-ci.
Workflow
- Pick the release tool by workflow reality (decision table in
references/release-playbook.md): Changesets (human-written notes, monorepos), semantic-release (strict conventional commits, fully autonomous), release-please (PR-gated review of each release). - Trusted publishing (OIDC) — the default auth; all requirements are
version-gated in the playbook with the official npm doc links (CLI/Node
minimums on the runner, GitHub-hosted runners, exact repo + workflow-filename
registration match,
workflow_callindirection caveat). Provenance is attached automatically under trusted publishing. - Bootstrap gotcha — say it before it bites: a brand-new package cannot be first-published via OIDC; the playbook's bootstrap procedure covers the one manual publish, then registration, then token revocation and account-level trusted-publishing-only enforcement.
- Write the publish workflow from the playbook's YAML: minimal permissions
(
id-token: write,contents: read/writeonly as needed), SHA-pinned third-party actions (consistent withnode-supply-chainpolicy), publish gated on thenode-packagingchecks. - Failure-ordering discipline: publish before tagging (or make retries idempotent); never delete published tags — releases are immutable.
- Verify end-to-end: dry-run, then a real publish of a prerelease/dist-tag where possible; confirm provenance on the registry page; only then revoke legacy tokens.
Output spec
A working automated release pipeline: version + changelog + tag + npm publish with provenance, zero long-lived registry secrets after cutover, bootstrap and rollback procedures documented in the repo, staged/prerelease channel decided deliberately.
Gotchas
- Trusted-publisher registration is exact-match: owner/repo casing and workflow
filename including extension; publishing from a reusable (
workflow_call) workflow validates against the calling file. - OIDC does not make a compromised workflow safe — it removes stored-secret
theft; workflow-file review still matters (CODEOWNERS on
.github/). - Tag-then-fail leaves consumers seeing a version npm doesn't have — ordering or idempotency, pick one explicitly.
- All npm-side specifics (minimums, staged publishing, token lifetimes) drift: the playbook version-gates each with its primary source — re-verify on setup.
Files
references/release-playbook.md— tool decision table, OIDC setup with version-gated requirements + doc links, bootstrap procedure, publish workflow YAML, failure-ordering patterns, dist-tag/prerelease guidance.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

