From 45e775e4a6aa0c9b6cc5961a166fc2b807300851 Mon Sep 17 00:00:00 2001 From: Austin Sullivan Date: Tue, 11 Jul 2023 15:11:25 -0400 Subject: [PATCH] updated pr action to invalidate deps cache if package files added/edited --- .github/workflows/pr-preview.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-preview.yml b/.github/workflows/pr-preview.yml index 2f400db2655..d943b7a14e5 100644 --- a/.github/workflows/pr-preview.yml +++ b/.github/workflows/pr-preview.yml @@ -26,7 +26,7 @@ jobs: node_modules **/node_modules ~/.cache/Cypress - key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }} + key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock', 'packages/*/package.json') }} - run: yarn install --frozen-lockfile if: steps.yarn-cache.outputs.cache-hit != 'true' - uses: actions/cache@v2