- Commit all your changes
- Build the package for production
npm version patch
to increase the package version's patch 0.0.x (use minor for 0.x.0 and major for x.0.0)npm publish
to publish the package on NPMgit push origin --tags
to send the latest tag to the repository
If any tag is deleted on remote, run git fetch origin refs/tags/*:refs/tags/* --prune
to update the local tag list.