DEV Community

A review of semantic versioning using npm version

JeanCarl on January 19, 2019

This past week I was watching a Twitch stream and happened to see the developer using the npm version command. I haven't come across this command b...
Collapse
 
mattmcmahon profile image
Matt McMahon

npm version will also automatically create a new git tag for you, too. These tags won't be pushed upstream, though, unless they're signed.

Configuring git to cryptographically sign commits would be a great follow up post! 😁👍

Collapse
 
andreandyp profile image
André Michel Andy

Thank you, it is a really good command. I have a webapp that has a lot of commits since November 2017, even with a major release and I forgot (still forgetting) to update the npm version number. Starting from now, I will always update the version number with this useful command.

Collapse
 
jessyco profile image
Jessy

I would love to see an example of using the from-git option and how it works.