fix cache keys
This commit is contained in:
parent
77f37f607f
commit
82b6baa47a
1 changed files with 3 additions and 3 deletions
|
@ -23,7 +23,7 @@ jobs:
|
|||
name: restore pnpm cache
|
||||
with:
|
||||
path: ${{ steps.pnpm-cache-dir.outputs.dir }}
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/pnpm-lock.json') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-node-
|
||||
- name: pnpm install
|
||||
|
@ -33,7 +33,7 @@ jobs:
|
|||
if: steps.pnpm-cache.outputs.cache-hit != 'true'
|
||||
with:
|
||||
path: ${{ steps.pnpm-cache-dir.outputs.dir }}
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/pnpm-lock.json') }}
|
||||
|
||||
- uses: actions/cache@v3
|
||||
id: nuget-cache
|
||||
|
@ -48,7 +48,7 @@ jobs:
|
|||
- name: dotnet restore
|
||||
run: dotnet restore
|
||||
- name: save nuget cache
|
||||
uses: actions/cache@v3
|
||||
uses: actions/cache/save@v3
|
||||
if: steps.nuget-cache.outputs.cache-hit != 'true'
|
||||
with:
|
||||
path: ~/.nuget/packages
|
||||
|
|
Loading…
Reference in a new issue