Try the following command to see if you are already logged in:
$ npm whoamiIf not logged in, run the following command:
$ npm loginFollow the prompts to enter username, password, and email address
Determine whether your update type will be Major, Minor, or Patch. See Semantic Version Guidelines
Afterwards, the command to run will be in this format:
npm version <update_type>
For example:
$ npm version minorThis command will change the version number in package.json.
While inside the package directory run:
$ npm publishNavigate to a page similar to:
https://www.npmjs.com/package/<package>
| Code Status | Stage | Example |
|---|---|---|
| First Release | New Product | 1.0.0 |
| Bug fixes, minor changes | Patch Release | 1.0.1 |
| New features that don't break existing features | Minor Release | 1.1.0 |
| Changes that break backwards compatibility | Major Release | 2.0.0 |
MIT