semantic-release icon indicating copy to clipboard operation
semantic-release copied to clipboard

How do file updaters work?

Open saitho opened this issue 5 years ago • 3 comments

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?

saitho avatar Dec 28 '20 15:12 saitho

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.

christophwitzko avatar Dec 29 '20 13:12 christophwitzko

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.

saitho avatar Dec 29 '20 14:12 saitho