@samitouri / QOS-React-1 / commits / 66df94460e

[ci] Update sizebot node_modules caching strategy

The download job for sizebot requires both modules from the root repo but also has a nested yarn lockfile in scripts/release. Calculate the hash for the cache using both lockfiles. ghstack-source-id: fc1703b547ab906ee244cfa3540414a6df8c660e Pull Request resolved: https://github.com/facebook/react/pull/30393

Lauren Tan committed Jul 18, 2024 at 17:35 UTC 66df94460e27ff382c07b13d0bcc4b2778bfc201
1 file changed +2 -2
.github/workflows/runtime_build_and_test.yml
+2 -2
@@ -539,8 +539,8 @@ jobs:
539 uses: actions/cache@v4
540 id: node_modules
541 with:
542 - path: scripts/release/node_modules
543 - key: ${{ runner.arch }}-${{ runner.os }}-scripts-modules-${{ hashFiles('scripts/release/yarn.lock') }}
542 + path: "**/node_modules"
543 + key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('yarn.lock', 'scripts/release/yarn.lock') }}
544 - run: yarn install --frozen-lockfile
545 - run: yarn install --frozen-lockfile
546 working-directory: scripts/release