The --follow-tags flags will make this one command instead of two, but it will also prevent pushing all of your local tags, and instead only pushes the ones that are missing from the remote but are pointing at commit-ish that are reachable from the refs being pushed. In practice this means that only the tag just created by npm version will be pushed ☺️
docs: https://git-scm.com/docs/git-push#Documentation/git-push.txt---follow-tags
The
--follow-tags
flags will make this one command instead of two, but it will also prevent pushing all of your local tags, and instead only pushes the ones that are missing from the remote but are pointing at commit-ish that are reachable from the refs being pushed. In practice this means that only the tag just created bynpm version
will be pushed ☺️