mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
[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:
4
.github/workflows/runtime_build_and_test.yml
vendored
4
.github/workflows/runtime_build_and_test.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user