-
Notifications
You must be signed in to change notification settings - Fork 21
chore(ci): update cts and playground dependencies on release #467
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
Conversation
✅ Deploy Preview for api-clients-automation canceled.
|
✗ The generated branch has been deleted.If the PR has been merged, you can check the generated code on the |
Since we have all the informations of the It would for example output the edit: ah but we would still need some logic for the playground 🤔 , however CTS gen could output both files at their correct location |
yeah we "could" probably do that, but it's "CTS" generator. So it feels unrelevant to what we're doing here. We bump versions during the release process, and want to bump all the related packages. So it makes sense to run all the steps within the release process. WDYT? |
Yep I agree, I just feel like it could be globally handled by the generator instead of inside the release process, with logic for each language. Since we re-gen everything before a release anyway, we can have this logic in each language generator |
"Since we re-gen everything before a release anyway" We don't know if we will have this later or not ;) |
How do you handle the version bump without that? It would invalidate Anyway I'm fine with this implem for the JavaScript, I just don't want us to have to do file manipulation with regexes etc. for each languages If we go with that, we should at least have a solution for Java too, I think the bump of |
Without any regex, we can simply find if a line contains does |
We bump the versions of the |
hmmm that could work, but then we run the extra logic every time we run |
I guess the easiest to avoid impacting the current CLI usage would be env variable (like This way we can still correctly do a manual release too |
"release" as a name to the generator means nothing to me. It can be really vague and confusing. And it doesn't represent what the option does. I'm still not in favor of making the generator do the work of bumping versions. If you need a way to manually release, then IMO, what we should do is, to create another CLI command to bump the version, and let the release process call this command. |
It was an example for the usage
But that's what's done today? |
what do you mean? we bump versions in process-release |
Yup, we bump the file, then generate, then push, it's exactly what I'm suggesting, but instead of running |
continued in #490 |
🧭 What and Why
🎟 JIRA Ticket: https://algolia.atlassian.net/browse/APIC-453
Changes included:
This PR makes the release process to bump the versions in cts and playground to the locally latest versions. This only works for JavaScript, and for other languages, it should be dealt separately.