tbump
tbump copied to clipboard
Idea: store current version in a separate file
Maybe .current_version ? This would separate "cache" from "config", as suggested in #90 by @maciejmatczak
Problem is, tbump would need two files to work properly instead of just one ...
My 2c after some time :)
This works pretty well in my internal solutions. More tools can use it, like release automation, etc.
It would be fun if Github CLI could use it in gh release create instead providing it manually via gh release create <tag>.
Storing the current version in a text file could be achieved:
- creating a text file with the current version in it (
git tag --sort=committerdate | grep -E '[0-9]' | tail -1 | cut -b 2-7 > .current_version - the use tbump to update the version number in the file