npm
Use this skill for npm package operations with release-safe defaults.
Scope
- OpenClaw packages in this monorepo (core + plugins)
- ClawHub CLI package/release checks when npm is involved
- npm publish, dist-tag, and version verification
Guardrails
- Never publish from repo root unless explicitly requested for
openclaw. - For plugin-only releases, publish only changed plugins and keep
openclawuntouched. - For beta tags, publish matching beta versions (for example
2026.2.15-beta.1) with--tag beta. - Use
npm view <pkg> version --userconfig "$(mktemp)"for read-only verification. - If OTP is required, fetch it through the
1passwordskill in tmux before publish.
Quick Checks
npm --version
npm whoami
npm view openclaw version --userconfig "$(mktemp)"
OpenClaw Release-safe Flow
- Verify target package and local version:
npm view <package-name> version --userconfig "$(mktemp)"
node -p "require('./package.json').version"
- Publish from package directory only:
cd <package-dir>
npm publish --access public --otp="<otp>"
- Verify published version:
npm view <package-name> version --userconfig "$(mktemp)"
- For beta releases:
npm publish --access public --tag beta --otp="<otp>"
ClawHub Interop
- Use npm only for ClawHub package version/auth concerns.
- Use
clawhubCLI for skill search/install/update/publish workflows. - If both are needed: publish npm package first, then run
clawhubpublish/update commands.
Useful Commands
# Inspect package metadata
npm view <package-name> dist-tags --json --userconfig "$(mktemp)"
npm view <package-name> versions --json --userconfig "$(mktemp)"
# Manage dist-tags
npm dist-tag add <package-name>@<version> beta
npm dist-tag add <package-name>@<version> latest
# Verify current auth context
npm whoami
npm profile get --json