Skip to content

Instantly share code, notes, and snippets.

@kumikoda
Last active January 4, 2016 06:58
Show Gist options
  • Save kumikoda/8584986 to your computer and use it in GitHub Desktop.
Save kumikoda/8584986 to your computer and use it in GitHub Desktop.
How to bump version number for your own package (that you don't need to publish to npm)
  1. make your changes and merge your stuff into master
  git push origin master
  1. Bump your version number in package.json, add a new tag and commit
  npm version patch
  1. Check that this worked by inspecting the commit history
  git log
  1. Push these changes to origin
  git push origin master --tags 
  1. Verify that your new version is up
  git ls-remote --tags origin
  1. Use your new package!
  "dependencies": {
    "your-package" : git://github.com/kumikoda/your-package.git#v0.0.1
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment