Skip to content

Commit

Permalink
fix(17-custom-actions): add missing target env in key
Browse files Browse the repository at this point in the history
  • Loading branch information
lauromueller committed Nov 20, 2023
1 parent b97f30b commit c082af9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/actions/composite-cache-deps/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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' }}
Expand Down

0 comments on commit c082af9

Please sign in to comment.