[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 authored and GitHub committed 2025-03-13 20:59:27 -04:00
1 parent 67338703aa
commit ef1103d3e9
10 files changed
+93 -62

No files matched your search

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