From 12f2c1f43116aee1f8705d43f1c0091c9d7ea287 Mon Sep 17 00:00:00 2001 From: Alex van Andel Date: Tue, 28 Feb 2023 19:06:12 +0000 Subject: [PATCH] Negate node_modules to decrease the file count --- .github/actions/cache-build/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/cache-build/action.yml b/.github/actions/cache-build/action.yml index b892ad544c..26060a85c3 100644 --- a/.github/actions/cache-build/action.yml +++ b/.github/actions/cache-build/action.yml @@ -13,7 +13,7 @@ runs: env: cache-name: prod-build key-1: ${{ inputs.node_version }}-${{ hashFiles('yarn.lock') }} - key-2: ${{ hashFiles('**/**.[jt]s', '**/**.[jt]sx') }} + key-2: ${{ hashFiles('**/**.[jt]s', '**/**.[jt]sx', '!**/node_modules') }} key-3: ${{ github.event.pull_request.number || github.ref }} with: path: |