@samitouri / QOS-React / commits / f3c956006a

[ci] Update node_modules cache path (#32609)

Alternative of #32604. Bust all old caches since I reverted some other changes to the keys.

lauren committed Mar 13, 2025 at 22:29 UTC f3c956006a90dc68210bd3e19497d10fb9b028d3
10 files changed +93 -62
.github/workflows/compiler_playground.yml
+3 -2
@@ -36,8 +36,9 @@ jobs:
36 uses: actions/cache@v4
37 id: node_modules
38 with:
39 - path: "**/node_modules"
40 - key: compiler-node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('compiler/**/yarn.lock') }}
39 + path: |
40 + **/node_modules
41 + key: compiler-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('compiler/**/yarn.lock') }}
42 - run: yarn install --frozen-lockfile
43 - run: npx playwright install --with-deps chromium
44 - run: CI=true yarn test
.github/workflows/compiler_prereleases.yml
+3 -2
@@ -46,8 +46,9 @@ jobs:
46 uses: actions/cache@v4
47 id: node_modules
48 with:
49 - path: "**/node_modules"
50 - key: compiler-node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('compiler/**/yarn.lock') }}
49 + path: |
50 + **/node_modules
51 + key: compiler-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('compiler/**/yarn.lock') }}
52 - run: yarn install --frozen-lockfile
53 - name: Publish packages to npm
54 run: |
.github/workflows/compiler_typescript.yml
+9 -6
@@ -46,8 +46,9 @@ jobs:
46 - name: Restore cached node_modules
47 uses: actions/cache@v4
48 with:
49 - path: "**/node_modules"
50 - key: compiler-node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('compiler/**/yarn.lock') }}
49 + path: |
50 + **/node_modules
51 + key: compiler-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('compiler/**/yarn.lock') }}
52 - run: yarn install --frozen-lockfile
53 - run: yarn workspace babel-plugin-react-compiler lint
54
@@ -66,8 +67,9 @@ jobs:
67 uses: actions/cache@v4
68 id: node_modules
69 with:
69 - path: "**/node_modules"
70 - key: compiler-node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('compiler/**/yarn.lock') }}
70 + path: |
71 + **/node_modules
72 + key: compiler-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('compiler/**/yarn.lock') }}
73 - run: yarn install --frozen-lockfile
74 - run: yarn workspace babel-plugin-react-compiler jest
75
@@ -90,8 +92,9 @@ jobs:
92 uses: actions/cache@v4
93 id: node_modules
94 with:
93 - path: "**/node_modules"
94 - key: compiler-node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('compiler/**/yarn.lock') }}
95 + path: |
96 + **/node_modules
97 + key: compiler-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('compiler/**/yarn.lock') }}
98 - run: yarn install --frozen-lockfile
99 - run: xvfb-run -a yarn workspace ${{ matrix.workspace_name }} test
100 if: runner.os == 'Linux' && matrix.workspace_name == 'react-forgive'
.github/workflows/devtools_regression_tests.yml
+12 -8
@@ -29,8 +29,9 @@ jobs:
29 uses: actions/cache@v4
30 id: node_modules
31 with:
32 - path: "**/node_modules"
33 - key: runtime-release-node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock', 'scripts/release/yarn.lock') }}
32 + path: |
33 + **/node_modules
34 + key: runtime-release-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock', 'scripts/release/yarn.lock') }}
35 - name: Ensure clean build directory
36 run: rm -rf build
37 - run: yarn install --frozen-lockfile
@@ -63,8 +64,9 @@ jobs:
64 uses: actions/cache@v4
65 id: node_modules
66 with:
66 - path: "**/node_modules"
67 - key: runtime-node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
67 + path: |
68 + **/node_modules
69 + key: runtime-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
70 - name: Ensure clean build directory
71 run: rm -rf build
72 - run: yarn install --frozen-lockfile
@@ -120,8 +122,9 @@ jobs:
122 uses: actions/cache@v4
123 id: node_modules
124 with:
123 - path: "**/node_modules"
124 - key: runtime-node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
125 + path: |
126 + **/node_modules
127 + key: runtime-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
128 - run: yarn install --frozen-lockfile
129 - name: Restore all archived build artifacts
130 uses: actions/download-artifact@v4
@@ -154,8 +157,9 @@ jobs:
157 uses: actions/cache@v4
158 id: node_modules
159 with:
157 - path: "**/node_modules"
158 - key: runtime-node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
160 + path: |
161 + **/node_modules
162 + key: runtime-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
163 - run: yarn install --frozen-lockfile
164 - name: Restore all archived build artifacts
165 uses: actions/download-artifact@v4
.github/workflows/runtime_build_and_test.yml
+42 -28
@@ -55,8 +55,9 @@ jobs:
55 uses: actions/cache@v4
56 id: node_modules
57 with:
58 - path: "**/node_modules"
59 - key: runtime-node_modules-v3-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
58 + path: |
59 + **/node_modules
60 + key: runtime-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
61 - name: Ensure clean build directory
62 run: rm -rf build
63 - run: yarn install --frozen-lockfile
@@ -79,8 +80,9 @@ jobs:
80 uses: actions/cache@v4
81 id: node_modules
82 with:
82 - path: "**/node_modules"
83 - key: runtime-node_modules-v3-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
83 + path: |
84 + **/node_modules
85 + key: runtime-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
86 - name: Ensure clean build directory
87 run: rm -rf build
88 - run: yarn install --frozen-lockfile
@@ -105,8 +107,9 @@ jobs:
107 uses: actions/cache@v4
108 id: node_modules
109 with:
108 - path: "**/node_modules"
109 - key: runtime-node_modules-v3-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
110 + path: |
111 + **/node_modules
112 + key: runtime-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
113 - name: Ensure clean build directory
114 run: rm -rf build
115 - run: yarn install --frozen-lockfile
@@ -160,8 +163,9 @@ jobs:
163 uses: actions/cache@v4
164 id: node_modules
165 with:
163 - path: "**/node_modules"
164 - key: runtime-and-compiler-node_modules-v3-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock', 'compiler/yarn.lock') }}
166 + path: |
167 + **/node_modules
168 + key: runtime-and-compiler-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock', 'compiler/yarn.lock') }}
169 - name: Ensure clean build directory
170 run: rm -rf build
171 - run: yarn install --frozen-lockfile
@@ -198,8 +202,9 @@ jobs:
202 uses: actions/cache@v4
203 id: node_modules
204 with:
201 - path: "**/node_modules"
202 - key: runtime-and-compiler-node_modules-v3-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock', 'compiler/yarn.lock') }}
205 + path: |
206 + **/node_modules
207 + key: runtime-and-compiler-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock', 'compiler/yarn.lock') }}
208 - name: Ensure clean build directory
209 run: rm -rf build
210 - run: yarn install --frozen-lockfile
@@ -276,8 +281,9 @@ jobs:
281 uses: actions/cache@v4
282 id: node_modules
283 with:
279 - path: "**/node_modules"
280 - key: runtime-and-compiler-node_modules-v3-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock', 'compiler/yarn.lock') }}
284 + path: |
285 + **/node_modules
286 + key: runtime-and-compiler-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock', 'compiler/yarn.lock') }}
287 - name: Ensure clean build directory
288 run: rm -rf build
289 - run: yarn install --frozen-lockfile
@@ -310,8 +316,9 @@ jobs:
316 uses: actions/cache@v4
317 id: node_modules
318 with:
313 - path: "**/node_modules"
314 - key: runtime-node_modules-v3-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
319 + path: |
320 + **/node_modules
321 + key: runtime-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
322 - name: Ensure clean build directory
323 run: rm -rf build
324 - run: yarn install --frozen-lockfile
@@ -357,8 +364,9 @@ jobs:
364 uses: actions/cache@v4
365 id: node_modules
366 with:
360 - path: "**/node_modules"
361 - key: runtime-node_modules-v3-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
367 + path: |
368 + **/node_modules
369 + key: runtime-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
370 - name: Ensure clean build directory
371 run: rm -rf build
372 - run: yarn install --frozen-lockfile
@@ -392,8 +400,9 @@ jobs:
400 uses: actions/cache@v4
401 id: node_modules
402 with:
395 - path: "**/node_modules"
396 - key: runtime-node_modules-v3-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
403 + path: |
404 + **/node_modules
405 + key: runtime-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
406 - name: Ensure clean build directory
407 run: rm -rf build
408 - run: yarn install --frozen-lockfile
@@ -424,8 +433,9 @@ jobs:
433 uses: actions/cache@v4
434 id: node_modules
435 with:
427 - path: "**/node_modules"
428 - key: fixtures_dom-node_modules-v3-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
436 + path: |
437 + **/node_modules
438 + key: fixtures_dom-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
439 - name: Ensure clean build directory
440 run: rm -rf build
441 - run: yarn install --frozen-lockfile
@@ -467,8 +477,9 @@ jobs:
477 uses: actions/cache@v4
478 id: node_modules
479 with:
470 - path: "**/node_modules"
471 - key: fixtures_flight-node_modules-v3-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
480 + path: |
481 + **/node_modules
482 + key: fixtures_flight-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
483 - name: Ensure clean build directory
484 run: rm -rf build
485 - run: yarn install --frozen-lockfile
@@ -529,8 +540,9 @@ jobs:
540 uses: actions/cache@v4
541 id: node_modules
542 with:
532 - path: "**/node_modules"
533 - key: runtime-node_modules-v3-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
543 + path: |
544 + **/node_modules
545 + key: runtime-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
546 - name: Ensure clean build directory
547 run: rm -rf build
548 - run: yarn install --frozen-lockfile
@@ -580,8 +592,9 @@ jobs:
592 uses: actions/cache@v4
593 id: node_modules
594 with:
583 - path: "**/node_modules"
584 - key: runtime-node_modules-v3-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
595 + path: |
596 + **/node_modules
597 + key: runtime-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
598 - name: Ensure clean build directory
599 run: rm -rf build
600 - run: yarn install --frozen-lockfile
@@ -617,8 +630,9 @@ jobs:
630 uses: actions/cache@v4
631 id: node_modules
632 with:
620 - path: "**/node_modules"
621 - key: runtime-node_modules-v3-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
633 + path: |
634 + **/node_modules
635 + key: runtime-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
636 - name: Ensure clean build directory
637 run: rm -rf build
638 - run: yarn install --frozen-lockfile
.github/workflows/runtime_commit_artifacts.yml
+3 -2
@@ -73,8 +73,9 @@ jobs:
73 uses: actions/cache@v4
74 id: node_modules
75 with:
76 - path: "**/node_modules"
77 - key: runtime-release-node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock', 'scripts/release/yarn.lock') }}
76 + path: |
77 + **/node_modules
78 + key: runtime-release-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock', 'scripts/release/yarn.lock') }}
79 - name: Ensure clean build directory
80 run: rm -rf build
81 - run: yarn install --frozen-lockfile
.github/workflows/runtime_eslint_plugin_e2e.yml
+3 -2
@@ -42,8 +42,9 @@ jobs:
42 uses: actions/cache@v4
43 id: node_modules
44 with:
45 - path: "node_modules"
46 - key: runtime-and-compiler-eslint_e2e-node_modules-v3-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock', 'compiler/yarn.lock') }}
45 + path: |
46 + **/node_modules
47 + key: runtime-and-compiler-eslint_e2e-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock', 'compiler/yarn.lock') }}
48 - name: Ensure clean build directory
49 run: rm -rf build
50 - run: yarn install --frozen-lockfile
.github/workflows/runtime_prereleases.yml
+3 -2
@@ -39,8 +39,9 @@ jobs:
39 uses: actions/cache@v4
40 id: node_modules
41 with:
42 - path: "**/node_modules"
43 - key: runtime-release-node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock', 'scripts/release/yarn.lock') }}
42 + path: |
43 + **/node_modules
44 + key: runtime-release-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock', 'scripts/release/yarn.lock') }}
45 - name: Ensure clean build directory
46 run: rm -rf build
47 - run: yarn install --frozen-lockfile
.github/workflows/runtime_releases_from_npm_manual.yml
+3 -2
@@ -71,8 +71,9 @@ jobs:
71 uses: actions/cache@v4
72 id: node_modules
73 with:
74 - path: "**/node_modules"
75 - key: runtime-release-node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock', 'scripts/release/yarn.lock') }}
74 + path: |
75 + **/node_modules
76 + key: runtime-release-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock', 'scripts/release/yarn.lock') }}
77 - name: Ensure clean build directory
78 run: rm -rf build
79 - run: yarn install --frozen-lockfile
.github/workflows/shared_lint.yml
+12 -8
@@ -28,8 +28,9 @@ jobs:
28 - name: Restore cached node_modules
29 uses: actions/cache@v4
30 with:
31 - path: "**/node_modules"
32 - key: shared-lint-node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
31 + path: |
32 + **/node_modules
33 + key: shared-lint-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
34 - name: Ensure clean build directory
35 run: rm -rf build
36 - run: yarn install --frozen-lockfile
@@ -48,8 +49,9 @@ jobs:
49 - name: Restore cached node_modules
50 uses: actions/cache@v4
51 with:
51 - path: "**/node_modules"
52 - key: shared-lint-node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
52 + path: |
53 + **/node_modules
54 + key: shared-lint-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
55 - name: Ensure clean build directory
56 run: rm -rf build
57 - run: yarn install --frozen-lockfile
@@ -68,8 +70,9 @@ jobs:
70 - name: Restore cached node_modules
71 uses: actions/cache@v4
72 with:
71 - path: "**/node_modules"
72 - key: shared-lint-node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
73 + path: |
74 + **/node_modules
75 + key: shared-lint-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
76 - name: Ensure clean build directory
77 run: rm -rf build
78 - run: yarn install --frozen-lockfile
@@ -88,8 +91,9 @@ jobs:
91 - name: Restore cached node_modules
92 uses: actions/cache@v4
93 with:
91 - path: "**/node_modules"
92 - key: shared-lint-node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
94 + path: |
95 + **/node_modules
96 + key: shared-lint-node_modules-v5-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
97 - name: Ensure clean build directory
98 run: rm -rf build
99 - run: yarn install --frozen-lockfile