-
Notifications
You must be signed in to change notification settings - Fork 21
feat(scripts): allow subset release and major #3174
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
✗ The generated branch has been deleted.If the PR has been merged, you can check the generated code on the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's test this !! Awesome work here. 🥇
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
such a good idea !
@@ -200,4 +207,23 @@ program | |||
await snippetsGenerateMany(generatorList({ language, client, clientList })); | |||
}); | |||
|
|||
program |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could be really cool to have a dry run option for this one !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
true!! I'll add it in a subsequent pr
const currentVersion = versions[lang].current; | ||
|
||
if (!languages.includes(lang as Language)) { | ||
console.log(`${lang} is not in the given language list, skipping release`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this console log is interesting for debug mode, but in regular use it would be more interesting to log only the chosen languages
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the release script is pretty verbose which I believe is nice as it's a process that can fail in many ways :/ I'm fine with keeping the log, wdyt?
🧭 What and Why
🎟 JIRA Ticket: https://algolia.atlassian.net/browse/DI-2444
Changes included:
updates the release script to be able to only release a subset of clients, and also to promote that subset (or every) to the next major version
this will allow us to release the GA without introducing a breaking change commit, and also allows us to prevent bypassing
dart
which is already stable.also moves the release script to the CLI script, makes more sense and allows leveraging the current logic