parent
52878ac6a6
commit
b4bc053c14
1 changed files with 6 additions and 2 deletions
|
@ -14,11 +14,15 @@ jobs:
|
|||
- uses: actions/checkout@v4
|
||||
- name: install pnpm
|
||||
run: npm install -g pnpm
|
||||
- name: get npm cache directory
|
||||
id: pnpm-cache-dir
|
||||
shell: bash
|
||||
run: pnpm config set store-dir .pnpm-store
|
||||
- uses: actions/cache@v3
|
||||
id: pnpm-cache
|
||||
name: restore pnpm cache
|
||||
with:
|
||||
path: ~/.pnpm-store
|
||||
path: .pnpm-store
|
||||
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-pnpm-
|
||||
|
@ -28,7 +32,7 @@ jobs:
|
|||
name: save pnpm cache
|
||||
if: steps.pnpm-cache.outputs.cache-hit != 'true'
|
||||
with:
|
||||
path: ~/.pnpm-store
|
||||
path: .pnpm-store
|
||||
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
|
||||
- uses: actions/cache@v3
|
||||
id: nuget-cache
|
||||
|
|
Loading…
Reference in a new issue