Skip to content

Instantly share code, notes, and snippets.

@eluleci
Created May 28, 2020 23:58
Show Gist options
  • Save eluleci/0b27d66197a96d75370d5b60ae957794 to your computer and use it in GitHub Desktop.
Save eluleci/0b27d66197a96d75370d5b60ae957794 to your computer and use it in GitHub Desktop.
Publishing NPM package
  • Commit all your changes
  • Build the package for production
  • npm version patch to increase the package version's patch 0.0.x (use minor for 0.x.0 and major for x.0.0)
  • npm publish to publish the package on NPM
  • git push origin --tags to send the latest tag to the repository

Fetch latest tags

If any tag is deleted on remote, run git fetch origin refs/tags/*:refs/tags/* --prune to update the local tag list.

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