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

How do file updaters work? #101

Open
saitho opened this issue Dec 28, 2020 · 2 comments
Open

How do file updaters work? #101

saitho opened this issue Dec 28, 2020 · 2 comments
Labels

Comments

@saitho
Copy link

saitho commented Dec 28, 2020

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
Copy link
Member

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
Copy link
Author

saitho commented Dec 29, 2020

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.

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

No branches or pull requests

3 participants