From 66df94460e27ff382c07b13d0bcc4b2778bfc201 Mon Sep 17 00:00:00 2001 From: Lauren Tan Date: Thu, 18 Jul 2024 17:35:56 -0400 Subject: [PATCH] [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 --- .github/workflows/runtime_build_and_test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/runtime_build_and_test.yml b/.github/workflows/runtime_build_and_test.yml index 78492c603bb3a..2cf5011a0012a 100644 --- a/.github/workflows/runtime_build_and_test.yml +++ b/.github/workflows/runtime_build_and_test.yml @@ -539,8 +539,8 @@ jobs: uses: actions/cache@v4 id: node_modules with: - path: scripts/release/node_modules - key: ${{ runner.arch }}-${{ runner.os }}-scripts-modules-${{ hashFiles('scripts/release/yarn.lock') }} + path: "**/node_modules" + key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('yarn.lock', 'scripts/release/yarn.lock') }} - run: yarn install --frozen-lockfile - run: yarn install --frozen-lockfile working-directory: scripts/release