Commit 60b83ac
authored
CI: Select node version to run CI against automatically (#7032)
## What's the problem this PR addresses?
Our CI are running against node versions that are not supported like 19.
The version list is manually managed, meaning we need to update it each
time Node releases new majors.
Also, in #6575 we pinned node versions for most CI processes to Node 22
to avoid 23.0 shenanigans.
## How did you fix it?
Add a step to fetch available Node versions and filter them down to
major versions that are even-numbered and >=18, or the latest major.
This needs to be updated only when we change our own supported Node
versions.
And essentially revert #6575 to use the current Node version
## Checklist
<!--- Don't worry if you miss something, chores are automatically
tested. -->
<!--- This checklist exists to help you remember doing the chores when
you submit a PR. -->
<!--- Put an `x` in all the boxes that apply. -->
- [x] I have read the [Contributing
Guide](https://yarnpkg.com/advanced/contributing).
<!-- See
https://yarnpkg.com/advanced/contributing#preparing-your-pr-to-be-released
for more details. -->
<!-- Check with `yarn version check` and fix with `yarn version check
-i` -->
- [x] I have set the packages that need to be released for my changes to
be effective.
<!-- The "Testing chores" workflow validates that your PR follows our
guidelines. -->
<!-- If it doesn't pass, click on it to see details as to what your PR
might be missing. -->
- [x] I will check that all automated PR checks pass before the PR gets
reviewed.1 parent 571363e commit 60b83ac
File tree
2 files changed
+21
-5
lines changed- .github
- actions/prepare
- workflows
2 files changed
+21
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
212 | 228 | | |
213 | 229 | | |
214 | 230 | | |
215 | 231 | | |
216 | 232 | | |
217 | | - | |
| 233 | + | |
218 | 234 | | |
219 | 235 | | |
220 | 236 | | |
| |||
239 | 255 | | |
240 | 256 | | |
241 | 257 | | |
242 | | - | |
| 258 | + | |
243 | 259 | | |
244 | 260 | | |
245 | 261 | | |
| |||
249 | 265 | | |
250 | 266 | | |
251 | 267 | | |
252 | | - | |
| 268 | + | |
253 | 269 | | |
254 | 270 | | |
255 | | - | |
| 271 | + | |
256 | 272 | | |
257 | 273 | | |
258 | 274 | | |
| |||
0 commit comments