Skip to content

Instantly share code, notes, and snippets.

@missinglink
Last active August 29, 2015 14:07
Show Gist options
  • Save missinglink/b9e066d672adeb71eadc to your computer and use it in GitHub Desktop.
Save missinglink/b9e066d672adeb71eadc to your computer and use it in GitHub Desktop.

npm publish actually zips up your module directory and sends the zip to be stored on the npm servers. if you have passwords and large files in your working directory they may be included in the zip unless you add them to a .npmignore (if an .npmignore is not present it will check .gitignore instead)

on github:

  • merge PR to master

locally:

  • switch to master branch important
  • pull origin master locally important

your repo should be clean with nothing to commit

  • edit package.json and increment version number eg
  • add and commit change to package.json (as per above)
  • git push (this shows up in the chat)
  • npm publish

you're done.

now you will probably need to update all dependants package.json too with the new version number

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment