- bump version of
package.json > version
that follow semantic versioning - commit
git commit -m "bump version to x.x.x"
- create a git tag for this version
git tag x.x.x
- push the tag (GitHub Action will publish automatically)
git push origin x.x.x
npm login
npm publish --access public