From c082af9523fc54b9cacd3b403afb3639b8de375d Mon Sep 17 00:00:00 2001 From: Lauro Fialho Mueller Date: Mon, 20 Nov 2023 16:30:37 +0100 Subject: [PATCH] fix(17-custom-actions): add missing target env in key --- .github/actions/composite-cache-deps/action.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/composite-cache-deps/action.yaml b/.github/actions/composite-cache-deps/action.yaml index 724b139..b1f96b6 100644 --- a/.github/actions/composite-cache-deps/action.yaml +++ b/.github/actions/composite-cache-deps/action.yaml @@ -27,7 +27,7 @@ runs: uses: actions/cache@v3 with: path: ${{ inputs.working-dir }}/node_modules - key: node-modules-${{ hashFiles(format('{0}/{1}', inputs.working-dir, 'package-lock.json')) }} + key: node-modules-${{ inputs.target-env }}-${{ hashFiles(format('{0}/{1}', inputs.working-dir, 'package-lock.json')) }} - name: Install dependencies if: steps.cache.outputs.cache-hit != 'true' run: ${{ inputs.target-env == 'dev' && 'npm ci' || 'npm ci --omit=dev' }}