Skip to content

Instantly share code, notes, and snippets.

@dchapkine
Last active December 5, 2016 08:34
Show Gist options
  • Save dchapkine/3b5c444052ace67052210ea4c18cb069 to your computer and use it in GitHub Desktop.
Save dchapkine/3b5c444052ace67052210ea4c18cb069 to your computer and use it in GitHub Desktop.
push new npm version
# assuming our last package version is v1.0.0
# this will increment the package.json version, and commit change
# it's equivalent to git tag v1.0.1, update manualy package.json and git add package.json && git commit -m "bump version"
npm version patch
# then we need to push it into our repo
git push v1.0.1
# then publish the package
npm publish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment