Skip to content

Commit

Permalink
[ci] Update sizebot node_modules caching strategy
Browse files Browse the repository at this point in the history
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: #30393
  • Loading branch information
poteto committed Jul 18, 2024
1 parent d439f27 commit 66df944
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/runtime_build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 66df944

Please sign in to comment.