Skip to content

Instantly share code, notes, and snippets.

@vutran
Last active July 5, 2016 18:04
Show Gist options
  • Save vutran/85658223cc209af9037c to your computer and use it in GitHub Desktop.
Save vutran/85658223cc209af9037c to your computer and use it in GitHub Desktop.
Publishing on NPM

NPM Flow

Bump the version

$ npm version major|minor|patch

With message.

$ npm version patch -m "my annotated message"

Publish the version

$ npm publish

Push the tags to GitHub

$ git push --tags

Update package.json to include the username scope:

{
  "name": "@vutran/my-package"
}

Publish on NPM

$ npm publish --access public
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment