deploy-npm
Installation
SKILL.md
deploy-npm — Full release workflow
Degree of freedom: MIXED. Semver/changeset judgment [HIGH freedom];
git/gh/npm publish steps [LOW freedom — run exactly]. Never pnpm publish
locally when the repo uses Trusted Publisher.
How to reason
- Observe — branch, dirty tree, open PRs, pending changesets, release.yml trigger
- Interpret — is this a changeset-ready release or a no-op?
- Classify — proceed / stop-and-ask (dirty tree, conflicting PRs, no changeset)
- Severity — publishing the wrong bump or skipping verify is a user-facing break
Worked example
Observe: feature PR green; one minor changeset; Version PR opened by the bot; required checks never fired. Interpret: GitHub anti-loop suppressed CI on the bot branch. Classify: empty-commit to trigger CI (Phase 4), then merge Version PR. Verify:
npm viewshows the new version; do not publish from the laptop.