@samitouri / QOS-React / commits / 73b21a05e3

[ci] Read node version from .nvmrc instead of hardcoding

ghstack-source-id: 336ac1a45f577aee3cb281e0ceec8648fe8fd2bb Pull Request resolved: https://github.com/facebook/react/pull/30530

Lauren Tan committed Jul 30, 2024 at 11:53 UTC 73b21a05e34f0b1a6585fbf6db53dfc76acac768
7 files changed +29 -29
.github/workflows/compiler_playground.yml
+1 -1
@@ -25,7 +25,7 @@ jobs:
25 - uses: actions/checkout@v4
26 - uses: actions/setup-node@v4
27 with:
28 - node-version: 18.20.1
28 + node-version-file: '.nvmrc'
29 cache: yarn
30 cache-dependency-path: compiler/yarn.lock
31 - name: Restore cached node_modules
.github/workflows/compiler_typescript.yml
+3 -3
@@ -36,7 +36,7 @@ jobs:
36 - uses: actions/checkout@v4
37 - uses: actions/setup-node@v4
38 with:
39 - node-version: 18.20.1
39 + node-version-file: '.nvmrc'
40 cache: yarn
41 cache-dependency-path: compiler/yarn.lock
42 - name: Restore cached node_modules
@@ -55,7 +55,7 @@ jobs:
55 - uses: actions/checkout@v4
56 - uses: actions/setup-node@v4
57 with:
58 - node-version: 18.20.1
58 + node-version-file: '.nvmrc'
59 cache: yarn
60 cache-dependency-path: compiler/yarn.lock
61 - name: Restore cached node_modules
@@ -79,7 +79,7 @@ jobs:
79 - uses: actions/checkout@v4
80 - uses: actions/setup-node@v4
81 with:
82 - node-version: 18.20.1
82 + node-version-file: '.nvmrc'
83 cache: yarn
84 cache-dependency-path: compiler/yarn.lock
85 - name: Restore cached node_modules
.github/workflows/devtools_regression_tests.yml
+4 -4
@@ -22,7 +22,7 @@ jobs:
22 - uses: actions/checkout@v4
23 - uses: actions/setup-node@v4
24 with:
25 - node-version: 18.20.1
25 + node-version-file: '.nvmrc'
26 cache: yarn
27 cache-dependency-path: yarn.lock
28 - name: Restore cached node_modules
@@ -54,7 +54,7 @@ jobs:
54 - uses: actions/checkout@v4
55 - uses: actions/setup-node@v4
56 with:
57 - node-version: 18.20.1
57 + node-version-file: '.nvmrc'
58 cache: yarn
59 cache-dependency-path: yarn.lock
60 - name: Restore cached node_modules
@@ -108,7 +108,7 @@ jobs:
108 - uses: actions/checkout@v4
109 - uses: actions/setup-node@v4
110 with:
111 - node-version: 18.20.1
111 + node-version-file: '.nvmrc'
112 cache: yarn
113 cache-dependency-path: yarn.lock
114 - name: Restore cached node_modules
@@ -142,7 +142,7 @@ jobs:
142 - uses: actions/checkout@v4
143 - uses: actions/setup-node@v4
144 with:
145 - node-version: 18.20.1
145 + node-version-file: '.nvmrc'
146 cache: yarn
147 cache-dependency-path: yarn.lock
148 - name: Restore cached node_modules
.github/workflows/runtime_build_and_test.yml
+15 -15
@@ -40,7 +40,7 @@ jobs:
40 - uses: actions/checkout@v4
41 - uses: actions/setup-node@v4
42 with:
43 - node-version: 18.20.1
43 + node-version-file: '.nvmrc'
44 cache: yarn
45 cache-dependency-path: yarn.lock
46 - name: Restore cached node_modules
@@ -60,7 +60,7 @@ jobs:
60 - uses: actions/checkout@v4
61 - uses: actions/setup-node@v4
62 with:
63 - node-version: 18.20.1
63 + node-version-file: '.nvmrc'
64 cache: yarn
65 cache-dependency-path: yarn.lock
66 - name: Restore cached node_modules
@@ -82,7 +82,7 @@ jobs:
82 - uses: actions/checkout@v4
83 - uses: actions/setup-node@v4
84 with:
85 - node-version: 18.20.1
85 + node-version-file: '.nvmrc'
86 cache: yarn
87 cache-dependency-path: yarn.lock
88 - name: Restore cached node_modules
@@ -131,7 +131,7 @@ jobs:
131 - uses: actions/checkout@v4
132 - uses: actions/setup-node@v4
133 with:
134 - node-version: 18.20.1
134 + node-version-file: '.nvmrc'
135 cache: yarn
136 cache-dependency-path: yarn.lock
137 - name: Restore cached node_modules
@@ -156,7 +156,7 @@ jobs:
156 - uses: actions/checkout@v4
157 - uses: actions/setup-node@v4
158 with:
159 - node-version: 18.20.1
159 + node-version-file: '.nvmrc'
160 cache: yarn
161 cache-dependency-path: yarn.lock
162 - uses: actions/setup-java@v4
@@ -230,7 +230,7 @@ jobs:
230 - uses: actions/checkout@v4
231 - uses: actions/setup-node@v4
232 with:
233 - node-version: 18.20.1
233 + node-version-file: '.nvmrc'
234 cache: yarn
235 cache-dependency-path: yarn.lock
236 - name: Restore cached node_modules
@@ -258,7 +258,7 @@ jobs:
258 - uses: actions/checkout@v4
259 - uses: actions/setup-node@v4
260 with:
261 - node-version: 18.20.1
261 + node-version-file: '.nvmrc'
262 cache: yarn
263 cache-dependency-path: yarn.lock
264 - name: Restore cached node_modules
@@ -301,7 +301,7 @@ jobs:
301 - uses: actions/checkout@v4
302 - uses: actions/setup-node@v4
303 with:
304 - node-version: 18.20.1
304 + node-version-file: '.nvmrc'
305 cache: yarn
306 cache-dependency-path: yarn.lock
307 - name: Restore cached node_modules
@@ -332,7 +332,7 @@ jobs:
332 - uses: actions/checkout@v4
333 - uses: actions/setup-node@v4
334 with:
335 - node-version: 18.20.1
335 + node-version-file: '.nvmrc'
336 cache: yarn
337 cache-dependency-path: yarn.lock
338 - name: Restore cached node_modules
@@ -360,7 +360,7 @@ jobs:
360 - uses: actions/checkout@v4
361 - uses: actions/setup-node@v4
362 with:
363 - node-version: 18.20.1
363 + node-version-file: '.nvmrc'
364 cache: yarn
365 cache-dependency-path: yarn.lock
366 - name: Restore cached node_modules
@@ -397,7 +397,7 @@ jobs:
397 - uses: actions/checkout@v4
398 - uses: actions/setup-node@v4
399 with:
400 - node-version: 18.20.1
400 + node-version-file: '.nvmrc'
401 cache: yarn
402 cache-dependency-path: yarn.lock
403 # Fixture copies some built packages from the workroot after install.
@@ -456,7 +456,7 @@ jobs:
456 - uses: actions/checkout@v4
457 - uses: actions/setup-node@v4
458 with:
459 - node-version: 18.20.1
459 + node-version-file: '.nvmrc'
460 cache: yarn
461 cache-dependency-path: yarn.lock
462 - name: Restore cached node_modules
@@ -502,7 +502,7 @@ jobs:
502 - uses: actions/checkout@v4
503 - uses: actions/setup-node@v4
504 with:
505 - node-version: 18.20.1
505 + node-version-file: '.nvmrc'
506 cache: yarn
507 cache-dependency-path: yarn.lock
508 - name: Restore cached node_modules
@@ -534,7 +534,7 @@ jobs:
534 - uses: actions/checkout@v4
535 - uses: actions/setup-node@v4
536 with:
537 - node-version: 18.20.1
537 + node-version-file: '.nvmrc'
538 cache: yarn
539 cache-dependency-path: yarn.lock
540 - name: Restore cached node_modules
@@ -573,7 +573,7 @@ jobs:
573 - uses: actions/checkout@v4
574 - uses: actions/setup-node@v4
575 with:
576 - node-version: 18.20.1
576 + node-version-file: '.nvmrc'
577 cache: yarn
578 cache-dependency-path: yarn.lock
579 - name: Restore cached node_modules
.github/workflows/runtime_commit_artifacts.yml
+1 -1
@@ -61,7 +61,7 @@ jobs:
61 echo "fbsource_branch_count=$(git ls-remote --heads origin "refs/heads/meta-fbsource" | wc -l)" >> "$GITHUB_OUTPUT"
62 - uses: actions/setup-node@v4
63 with:
64 - node-version: 18.20.1
64 + node-version-file: '.nvmrc'
65 cache: yarn
66 cache-dependency-path: yarn.lock
67 - name: Restore cached node_modules
.github/workflows/runtime_prereleases.yml
+1 -1
@@ -32,7 +32,7 @@ jobs:
32 - uses: actions/checkout@v4
33 - uses: actions/setup-node@v4
34 with:
35 - node-version: 18.20.1
35 + node-version-file: '.nvmrc'
36 cache: yarn
37 cache-dependency-path: yarn.lock
38 - name: Restore cached node_modules
.github/workflows/shared_lint.yml
+4 -4
@@ -18,7 +18,7 @@ jobs:
18 - uses: actions/checkout@v4
19 - uses: actions/setup-node@v4
20 with:
21 - node-version: 18.20.1
21 + node-version-file: '.nvmrc'
22 cache: yarn
23 cache-dependency-path: yarn.lock
24 - name: Restore cached node_modules
@@ -36,7 +36,7 @@ jobs:
36 - uses: actions/checkout@v4
37 - uses: actions/setup-node@v4
38 with:
39 - node-version: 18.20.1
39 + node-version-file: '.nvmrc'
40 cache: yarn
41 cache-dependency-path: yarn.lock
42 - name: Restore cached node_modules
@@ -54,7 +54,7 @@ jobs:
54 - uses: actions/checkout@v4
55 - uses: actions/setup-node@v4
56 with:
57 - node-version: 18.20.1
57 + node-version-file: '.nvmrc'
58 cache: yarn
59 cache-dependency-path: yarn.lock
60 - name: Restore cached node_modules
@@ -72,7 +72,7 @@ jobs:
72 - uses: actions/checkout@v4
73 - uses: actions/setup-node@v4
74 with:
75 - node-version: 18.20.1
75 + node-version-file: '.nvmrc'
76 cache: yarn
77 cache-dependency-path: yarn.lock
78 - name: Restore cached node_modules