Looks like when you run npm publish
it creates a git tag for you. That's weird that it does that automatically.
When I run git describe --tags
, I see:
v1.1.512218-311-g9f79efe
when I run git tag
, I see:
0.0.2
v1.1.512215
v1.1.512216
v1.1.512217
v1.1.512218
v1.1.512219
v1.1.512220
v1.1.512221
v1.1.512222
v1.1.51243
my question is - how do I get the latest git tag for all git branches? How do I get the latest git tag for just the master
branch?
What I want to do is compare the most recent commit in a Git repo, with the latest tag, to see if there is a difference. If there is a difference, then I need to create a new tag and publish a new version to NPM.