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

Dynamic Pre-Release-Versioning #2446

Open
triplem opened this issue Jun 1, 2022 · 1 comment
Open

Dynamic Pre-Release-Versioning #2446

triplem opened this issue Jun 1, 2022 · 1 comment

Comments

@triplem
Copy link

triplem commented Jun 1, 2022

New plugin motivation

In Java-Projects it is quite common, that pre-release-versions are marked with the -SNAPSHOT suffix. Since the whole Java (Maven/gradle) eco-system depends on this highly opinionated suffix, it would be good, to be able to support this in the semantic-release system, probably by an own plugin.

Right now the versioning of prereleasse-versions with the pre-release "SNAPSHOT" would produce something like "SNAPSHOT.2", but it would be great to customize this, so that the incremented number is not on the end but before the suffix (eg. -2-SNAPSHOT).

As an additonal feature, it would be great to be able to attach additional information to the version, like eg. the current datetime and/or thea commit-id. So with this, the version could look something like ---SNAPSHOT.

At best, this could be done via a regular expression in the prerelease-property, but an additonal plugin-like system could be used as well.

What do you think?

@ifalex
Copy link

ifalex commented Jan 22, 2023

Would be also interested in such feature.
While looking through the code, get-next-release for prerelease shouldn't be hardcoded. Is there any option to replace branch name with an env variable? Or commit short sha?

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

2 participants