Skip to content

Scheduling infrastructure for absolutely everyone.

fix: exclude .next/node_modules from yarn cache to prevent corruption (#26268)

Keith Williamse94ea4d4b84d
diff --git a/.github/actions/yarn-install/action.yml b/.github/actions/yarn-install/action.yml
index 6164c4ee8f1..c48a484f0f0 100644
--- a/.github/actions/yarn-install/action.yml
+++ b/.github/actions/yarn-install/action.yml
@@ -43,7 +43,9 @@ runs:
id: yarn-nm-cache
uses: actions/cache@v4
with:
- path: "**/node_modules/"
+ path: |
+ **/node_modules/
+ !**/.next/node_modules/
key: ${{ runner.os }}-yarn-nm-cache-${{ hashFiles('yarn.lock', '.yarnrc.yml') }}
# Invalidated on yarn.lock changes