tbump icon indicating copy to clipboard operation
tbump copied to clipboard

Idea: store current version in a separate file

Open dmerejkowsky opened this issue 4 years ago • 2 comments

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 ...

dmerejkowsky avatar Nov 11 '21 14:11 dmerejkowsky

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>.

maciejmatczak avatar Mar 01 '22 19:03 maciejmatczak

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

slashformotion avatar Dec 05 '23 15:12 slashformotion