npm version patch # to bump the version. You can use major, premajor, minor, preminor, patch or prepatch here depending on your changes.
npm publish --access public # to publish the package
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
How can I use it to publish a package?
I managed to figure this out after some research. I've also written a blog post about it.
Basically:
Step 1
Get a publish token from your account : docs.npmjs.com/creating-and-viewin...
Step 2
Add
.npmrcfile to your project root with the following contents by replacingyour-access-tokenwith the token you got in step 1.Source : docs.npmjs.com/using-private-packa...
Step 3
Bump the version and publish the package