Skip to content

Commit dd26c48

Browse files
committed
Improved caching
1 parent e944c3f commit dd26c48

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/actions/install-dependencies/action.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,19 @@ runs:
1212
with:
1313
version: 9
1414

15-
# Test
16-
1715
- name: Cache dependencies
1816
uses: actions/cache@v4
1917
with:
20-
path: node_modules
18+
path: |
19+
node_modules
20+
~/.pnpm-store
2121
# Generate a new cache whenever packages or source files change.
22-
key: ${{ runner.os }}-nestjs-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
22+
key: ${{ runner.os }}-nestjs-${{ hashFiles('**/pnpm-lock.yaml') }}
2323
# If source files changed but packages didn't, rebuild from a prior cache.
2424
restore-keys: |
25-
${{ runner.os }}-nestjs-${{ hashFiles('**/pnpm-lock.yaml') }}-
2625
${{ runner.os }}-nestjs-
2726
28-
- name: Install dependencies
27+
- if: ${{ steps.cache.outputs.cache-hit != 'true' }}
28+
name: Install dependencies
2929
shell: bash
3030
run: pnpm install

0 commit comments

Comments
 (0)