Publishing npm package
- npm login
- npm publish --access public
Note: Make sure you are logged in to npm registry before running 2nd command, for which reason, we have to run 1st command.
Always increment the version number by running below command before publishing the npm package to the registry.
npm version patch
Updating package version
Once we make any updation to @mbkctickets/common package and publish it to the repository, we need to update the @mbkctickets/common package version in application which is using it. For that, switch to that particular project folder
cd auth npm update @mbkctickets/common