[ci] Fix node_modules cache glob (#32604)

Seems like the stringified cache path can cause some directories not to
be cached, trying an alternative format
This commit is contained in:
lauren
2025-03-13 20:59:27 -04:00
committed by GitHub
parent 67338703aa
commit ef1103d3e9
10 changed files with 93 additions and 62 deletions

View File

@@ -73,8 +73,9 @@ jobs:
uses: actions/cache@v4
id: node_modules
with:
path: "**/node_modules"
key: runtime-release-node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock', 'scripts/release/yarn.lock') }}
path: |
**/node_modules
key: runtime-release-node_modules-v2-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock', 'scripts/release/yarn.lock') }}
- name: Ensure clean build directory
run: rm -rf build
- run: yarn install --frozen-lockfile