Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Idea: store current version in a separate file #128

Open
dmerejkowsky opened this issue Nov 11, 2021 · 2 comments
Open

Idea: store current version in a separate file #128

dmerejkowsky opened this issue Nov 11, 2021 · 2 comments

Comments

@dmerejkowsky
Copy link
Collaborator

dmerejkowsky commented Nov 11, 2021

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

@maciejmatczak
Copy link

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

@slashformotion
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants