-
Notifications
You must be signed in to change notification settings - Fork 369
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
Support for pre-release #510
Comments
I'd love to help out with this! |
It appears that release please only supports the |
v13 now supports more robust version handling (prerelease and build numbering). If we build something for this, we need to design how we signal to release please that we need to bump to a prerelease candidate versus a stable release. The CLI could accomplish this via a CLI option, but the GitHub action and app would not be able decide whether or not to use that flag. |
The github action is configurable: https://github.com/marketplace/actions/release-please-action#configuration Example: - uses: GoogleCloudPlatform/release-please-action@v2
with:
pre-release: beta For the gihub app I don't know. But many github apps are configurable via a configuration file in the EDIT: Yep, indeed the github app is configurable via the .github/release-please.yml file. Eventually, the configuration may be a map of branch-name to prerelease-label. So one can have a |
Hi, May I kindly ask where are we with this issue? May I help somehow? Are there still open questions that need to be solved first? |
@jcornaz @cobraz @chingor13 my suggestion is to submit a Once we get a design in writing we like, then we can work on implementation. I'd love to start moving release-please towards this RFC approach, so that our design is intentional. |
Thanks @bcoe, I have a suggestion that could improve the current state a bit (happy to write an RFC for it if you think it makes sense). Then one could The I'd be happy to contribute this change as well (pending rfc and feedback). UpdateLooks like the code does something similar already release-please/src/manifest.ts Line 960 in a682275
--prerelease flag, however it also looks at major === 0 to mark GitHub releases as pre-releases
Another updateI was able to find a solution for my use case, see https://github.com/cloudquery/cq-provider-releaseplayground/blob/8857679339b2cc5f9b784e98e027f2899760f589/.github/workflows/release-pr.yml#L28 |
I personally would be greatful for even just being able to input if I want it to be a prerelease to the action and I can use the branch name in the workflow syntax, I can do that for draft releases Edit: another issue is that the action errors when it cannot find a normal release and only finds a prerelease release |
Hello, Is there any roadmap for this feature being implemented in the near future? @chingor13 Would really appreciate an answer :). |
updates? |
Late to the party, but I went ahead and created said PR, as I've run into this issue in my attempts to move Edit: I would encourage people interested in this issue to read and comment here: #2051 |
Hey @erezrokah, it also look if the Lines 17 to 19 in 2e28edf
is present. |
We are definitely open to adding additional versioning strategies. Additional considerations:
Additional note: we added a |
@chingor13 the issue I'm seeing here is that the current implementation is not Semantic Versioning compliant based on https://semver.org/#spec-item-9 The RFC that @broofa has written up aligns with the spec - which is neat :) My 3 questions are:
|
the primary version numbers should change the same way they do currently. if there is a breaking change the major version should increment even if it's a pre-release. The pre-release suffix indicates the stability of the release and the primary semver numbers capture the API compatibility. These are orthogonal (separable).
this is harder. I would suggest creating two PRs:
as a user, you then decide which of the two PRs to merge to either 'stabilise' the release, or simply increment the pre-release number |
Is your feature request related to a problem? Please describe.
I would like to cut a pre-release
Describe the solution you'd like
Have a (documented) way to configure release-please so that it knows that I am publishing a pre-release.
It could be as simple as an argument of the CLI (example:
--prerelease=alpha
) and/or it could be via configuration file to map branch name with release type.Describe alternatives you've considered
Well, except using another tool than release-please, I don't see how to achieve that.
Additional context
I'm not sure what to add here. The context is releasing a software early as a pre-release...
The text was updated successfully, but these errors were encountered: