Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 578 Bytes

File metadata and controls

24 lines (15 loc) · 578 Bytes

NPM Publishing Guide

This guide covers the two essential commands for publishing a new version of the package to npm.

1. Bump the Version

Use this command to increment the version (patch, minor, or major):

pnpm version patch
  • Replace patch with minor or major as needed.
  • This will update the version, build the package, commit, tag, and push to GitHub.

2. Publish to NPM

After bumping the version, publish the package to npm:

pnpm publish --access public
  • This will publish the new version to the npm registry as a public package.