-
Notifications
You must be signed in to change notification settings - Fork 66
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
Create GitHub Action that will handle automated bump of internal AsyncAPI dependencies #16
Comments
Something that I liked from some actions is that they default the GH token to |
@fmvilas unfortunately not something we can do here. This action pushes changes to other repositories and default |
Then let's default to |
no, I probably explained it wrong. This action will have to clone another, dependent repo, bump version in package.json and push the change to upstream, to separate branch, and then create PR. It will work like dependabot. This means it needs token different that the default one I cannot default to |
Oh, I see! Thanks for explaining 👍 |
Main logic is ready and works when I test it with my test organization https://github.com/derberg/org-projects-dependency-manager now just need to put some effort in good amount of tests as this action can not only do good but also bad |
did some research on GH search as I could not understand why my search query finds only 3 repos while there should be 5. Luckily found answer -> forks are not indexed unless they have many starts aka they are pupular. Which makes sense, as we do not want to do automated bump in forks. 😌 so now just proper tests left |
ok, it looks like it worked like a charm in the parser. Have a look at
I also created an issue to work later on the generation of dependency diagram as first we need to know what we want to generate and then we can define the structure of data that we need -> derberg/npm-dependency-manager-for-your-github-org#1 |
Now I will work on adding bump workflow to all other repos that need it:
lot's of work 😓 but it will pay off |
actually, it did not work exactly as expected, the bump started on GitHub Release creation, but the package was not yet on npm, this is why the bump of parser 1.2.0 happened and not 1.3.0. I'll check what timeouts need to be added to the workflow |
@fmvilas @magicmatatjahu @jonaslagoni I also updated instruction here #17 Is there anything missing? |
@derberg Just a question, how are major versions handled? Didnt see any information about that, or I missed it somewhere? |
@jonaslagoni there is no difference between minor, major, patch. It doesn't matter what package version is released, it matters how it is used by the dependency, is it prod dependency or dev dependency. And you can decide to have a different commit message for prod and for dev if you want (so fix and chore for us). So if parser 2.0 is released, then generator gets |
I consider this topic as closed, all PRs merged, action works like a charm |
Reason/Context
Internal AsyncAPI dependencies are for example a dependency that Generator has to Parser. So we want to automatically bump version of Parser in package.json for Generator, in Generator repo, once Parser is released.
To have best user experience we should not manually maintain dependency tree between repos and use action only in the repository that runs release
Description
How would it work
Configuration Options
chore
fix
The text was updated successfully, but these errors were encountered: