npm Publish & Registry/Publish package

Publish the current package to the configured registry.

Section: Publish packages

Publish package

bash
bash
npm publish
Explanation

Publish the current package to the configured registry.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Publish packages
Bump patch version
Increment patch version and create a git tag by default.
OpenIn sheetbashsame section
Bump minor version
Increment minor version.
OpenIn sheetbashsame section
Bump major version
Increment major version.
OpenIn sheetbashsame section
Preview published contents
See which files would go into a package tarball.
OpenIn sheetbashsame section
Publish a scoped package publicly
Publish a scoped package to the public registry.
OpenIn sheetbashsame section
Publish with dist-tag
Publish a prerelease or alternate channel.
OpenIn sheetbashsame section