mirror of
https://github.com/seepine/action-setup-pnpm.git
synced 2025-01-18 14:16:35 +08:00
fix: cache hit bug
This commit is contained in:
parent
a5eceae314
commit
fbfd35d066
@ -77,6 +77,7 @@ runs:
|
||||
|
||||
- uses: actions/cache@v3
|
||||
name: Setup pnpm node_modules cache
|
||||
id: pnpm-modules-cache
|
||||
with:
|
||||
path: node_modules
|
||||
key: ${{ runner.os }}-pnpm-node_modules-store-cache-${{ steps.cache-rotation.outputs.YEAR_MONTH }}-${{ steps.get-hash.outputs.hash }}
|
||||
@ -91,7 +92,7 @@ runs:
|
||||
# run: pnpm prune store
|
||||
|
||||
- name: Install dependencies
|
||||
if: ${{ steps.pnpm-cache.outputs.cache-hit != 'true' && inputs.run_install == 'true' }}
|
||||
if: ${{ inputs.run_install == 'true' }}
|
||||
shell: bash
|
||||
working-directory: ${{ inputs.cwd }}
|
||||
run: ${{ inputs.install_cmd }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user