Skip to content

Instantly share code, notes, and snippets.

@xadamxk
Created June 30, 2021 15:53
Show Gist options
  • Save xadamxk/a7317246d08527778f164470c1807f6d to your computer and use it in GitHub Desktop.
Save xadamxk/a7317246d08527778f164470c1807f6d to your computer and use it in GitHub Desktop.
Use gitversion to automatically tag changes
version=${VERSION:-$(gitversion /nocache /output json /showvariable SemVer)}
git tag "v$version";
git push origin --tags;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment