From e94ea4d4b84db46b4e5a0afa1203b16444894da0 Mon Sep 17 00:00:00 2001 From: Keith Williams Date: Mon, 29 Dec 2025 11:10:00 -0300 Subject: [PATCH] fix: exclude .next/node_modules from yarn cache to prevent corruption (#26268) Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- .github/actions/yarn-install/action.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/actions/yarn-install/action.yml b/.github/actions/yarn-install/action.yml index 6164c4ee8f..c48a484f0f 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