Publishing cursor-kenji
July 24, 2026 · View on GitHub
How maintainers ship a new npm version. Consumers only need npx skills add kensaurus/cursor-kenji.
Prerequisites
- Write access to
kensaurus/cursor-kenji - npm package
@kensaurus/cursor-kenjiwith Trusted Publisher configured:- Repo:
kensaurus/cursor-kenji - Workflow:
npm-publish.yml - Permission:
npm publish
- Repo:
No long-lived NPM_TOKEN is required when OIDC is configured.
Pre-release checklist
- Bump
versioninpackage.jsonand.cursor-plugin/plugin.json(keep in sync) - Add a
[x.y.z]section to CHANGELOG.md - Run the full gate:
npm test
This runs skill spec validation, count sync, README skill-index sync, secret-scanner self-test, MCP pin check, completion-gate tests, and install smoke test.
- Update derived counts if needed:
npm run fix:skills
Ship
# Tag must match package.json version
gh release create v1.4.2 --title "v1.4.2" --notes "$(cat <<'EOF'
## Summary
- …
## Install
npx skills add kensaurus/cursor-kenji
EOF
)"
Creating the release triggers .github/workflows/npm-publish.yml, which:
- Validates skills + counts + MCP pins
- Publishes to npm with
--provenancevia OIDC
Verify
npm view @kensaurus/cursor-kenji version
npm view @kensaurus/cursor-kenji bin
Confirm the GitHub Actions publish run succeeded.
Emergency local publish
Only if CI is broken. Requires a granular npm token with publish access (never commit it):
npm test
npm publish --access public --//registry.npmjs.org/:_authToken="$NPM_TOKEN"
Prefer fixing CI + OIDC over local publishes.
Optional: Cursor Marketplace
Official marketplace submission uses the same repo — .cursor-plugin/plugin.json at the root. Submit at https://cursor.com/marketplace/publish after each meaningful release; Cursor reviews manually.