mirror of
https://github.com/seepine/action-setup-pnpm.git
synced 2025-02-23 15:50:13 +08:00
fix: add node_modules path cache
This commit is contained in:
parent
38ce16269a
commit
d935c181b0
@ -72,6 +72,14 @@ runs:
|
||||
restore-keys: |
|
||||
${{ runner.os }}-pnpm-store-cache-${{ steps.cache-rotation.outputs.YEAR_MONTH }}-
|
||||
|
||||
- uses: actions/cache@v3
|
||||
name: Setup pnpm node_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 }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-pnpm-node_modules-store-cache-${{ steps.cache-rotation.outputs.YEAR_MONTH }}-
|
||||
|
||||
# Prevent store to grow over time (not needed with yarn)
|
||||
# Note: not perfect as it prune too much in monorepos so the idea
|
||||
# is to use cache-rotation as above. In the future this might work better.
|
||||
|
Loading…
x
Reference in New Issue
Block a user