[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
This commit is contained in:
Lauren Tan
2024-07-18 17:35:56 -04:00
parent d439f279ff
commit 66df94460e

View File

@@ -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