- Create an account at https://www.npmjs.com
- From the console, run
npm login
, and log in using your new account. - Ask the package manager to add you as a collaborator.
- Run these commands:
cd path/to/repo
git checkout master
git pull
npm version patch -m "Preparing for publish" # see https://docs.npmjs.com/cli/version
git push
npm publish
All done! Verify at https://www.npmjs.com/package/{packagename}