This guide covers the two essential commands for publishing a new version of the package to npm.
Use this command to increment the version (patch, minor, or major):
pnpm version patch- Replace
patchwithminorormajoras needed. - This will update the version, build the package, commit, tag, and push to GitHub.
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.