go-semantic-release / semantic-release

📦🚀 semantic-release written in Go
https://go-semantic-release.xyz
MIT License
404 stars 43 forks source link

How do file updaters work? #101

Open saitho opened 3 years ago

saitho commented 3 years ago

Hi there,

I've been using the JS implementation and am currently looking into your Go implementation. I want need to move some files and write the new version number to a VERSION file before the tag is created.

I guess that's what file updaters are for. I saw the example for NPM, but I did not see in the code where the changed files are committed to the repository?

christophwitzko commented 3 years ago

Hi @saitho, this is currently not really possible. The file updaters are for updating the version number after the release (tag). You can use the --dry flag in combination with the --version-file flag to get the expected release. This will create a .version-unreleased file containing the next release, but not create a version tag.

saitho commented 3 years ago

Hi @christophwitzko, too bad. :(

Are there any plans to support this in the future? I'd love to contribute! Maybe you can add a page that compares the JS and Go implementation of semantic-release so I can get a better understanding on the use cases and goals.