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