npm-publish

Automate npm package publishing with pre-publish validation and dry-run checks.

34|5|Updated Jan 25, 2026
One-click install
npx skills add https://github.com/baekenough/oh-my-customcode --skill npm-publish-baekenough
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: npm-publish
Source: https://github.com/baekenough/oh-my-customcode/tree/main/templates/.claude/skills/npm-publish
Command: npx skills add https://github.com/baekenough/oh-my-customcode --skill npm-publish-baekenough

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates npm package publication by performing thorough pre-publish checks and validations to prevent broken releases.

Core Features & Use Cases

  • Pre-publish validations: verify package.json fields, ensure version correctness, and confirm registry readiness.
  • Quality gates: run tests, lint, and build checks before packaging.
  • Controlled publishing: supports dry-run mode and tagging for published releases.

Quick Start

Run npm-publish in your project to validate and publish your package with pre-publish checks.

Frequently Asked Questions about npm-publish

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate npm package publishing with pre-publish validation in a CI workflow?

Automating npm package publishing involves validating package.json fields, verifying versions against the registry, and running tests before publishing. This process enforces quality gates and uses dry-runs to prevent broken Node.js releases in CI workflows.

What pre-publish checks are needed to prevent broken npm package releases?

Essential pre-publish checks for npm packages include verifying package.json requirements, ensuring version correctness against the registry, and running test, lint, and build checks. These validations confirm registry readiness and prevent broken releases.

Can I run a dry-run before publishing an npm package to the registry?

Yes, you can perform a controlled npm publish dry-run to validate your package before releasing it. This verifies packaging outputs and registry readiness without finalizing the publication, ensuring version correctness and passing all quality gates.

How do I validate package.json fields and version correctness before an npm publish?

Validating package.json before an npm publish requires checking required fields and verifying the specified version against the npm registry. This pre-publish validation ensures the package is correctly configured and ready for Node.js distribution.

Does automated npm publishing support tagging releases in Node.js projects?

Yes, automated npm publishing supports tagging published releases in Node.js projects. After passing pre-publish validations and quality gates, the package is published to the registry with an npm tag to manage distribution channels.

What is the best way to enforce quality gates for lint and tests before publishing an npm package?

The best way to enforce quality gates before publishing an npm package is to automate checks that run lint, test, and build processes. This automated validation prevents broken releases by ensuring code quality prior to registry distribution.