-
Notifications
You must be signed in to change notification settings - Fork 122
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
PR or Tag based hex publishing #167
Comments
Hm, I guess with https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#running-your-pull_request-workflow-when-a-pull-request-merges and the labeler te second option could be done. |
I don't mind it but it gets super complicated and the flow would need to change source files and commit them to main. We use https://github.com/marketplace/actions/release-drafter and releases at work but don't modify the app version. The mono-repo is going to make things complicated but it's theoretically possible. For approach, releases probably make the most sense since we still need them to be manually released by the appropriate maintainer. |
I wouldn't want it having to change source files and committing them to main. If the version is based on the tag then it just means the mix.exs has to parse it from the tag when building. |
Sure, but how is it going to do that? It has to be in the mix file afaik
and you'd have to read from something, so maybe put it in an env var during
the build?
The other concern I have is you can overwrite a tag which is why I brought
up releases. And we would lose the ability to publish a quick fix for the
version without going through the PR process.
…On Tue, Apr 25, 2023 at 12:08 PM Tristan Sloughter ***@***.***> wrote:
I wouldn't want it having to change source files and committing them to
main. If the version is based on the tag then it just means the mix.exs has
to parse it from the tag when building.
—
Reply to this email directly, view it on GitHub
<#167 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABLXHVIBW5EPYMBWJUXRNXLXDAHJNANCNFSM6AAAAAAXKG4HSI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***
com>
|
Another option is to use release-please to create a release PR. This will also modify source files to adjust the version, but it will be done via a PR so it's easily reviewable. Plus it has built in support for mono repos, changelogs, and documentation updates. While not a mono repo, here is an example elixir PR: stordco/data-streams-ex#13 |
No Erlang support :( but I guess it could be nice for Elixir packages in here |
There is a simple release type that just increments a version in the Otherwise, if this looks like a good solution, I can work upstream and add support. |
We don't want any actions/bots committing files, so I'm not sure that would work |
I'm working on this at work where we use release-drafter and finally found a legit monorepo setup. https://github.com/guardrail-dev/guardrail/blob/master/.github/workflows/release-drafter.yml Also found a way to secure who can trigger releases. It isn't pretty but would work. We're using github IDs rather than usernames though. |
Alright. Got a job figured out at work to take a tag of With the new rulesets we can get really granular. Given a tag of
|
Great! Maybe needs to be a path to the project tho? Like |
Opening this in hopes there is a kind soul interested in tackling this -- well, first assuming @bryannaegele supports this plan.
I'd like publishing to hex done through github actions. There are a couple ways to do this but I'm not sure the best. The issue is my initial idea is to base it on tags, so when a tag
phoenix-1.1.1
is created then the version1.1.1
is published ofopentelemetry_phoenix
. The problem is it'd be nice to have the application version be based on the tag if we aren't doing it off of a PR where it can be reviewed and this would be a pain for the Erlang apps.Best would be if a PR could be opened to bump and release an application and it is done when that PR is merged. I don't know if that is even possible in Github Actions.
The text was updated successfully, but these errors were encountered: