re-add npm caching
This commit is contained in:
parent
509be2c2e1
commit
7f32b73817
1 changed files with 15 additions and 1 deletions
|
@ -17,9 +17,23 @@ jobs:
|
||||||
- name: get npm cache directory
|
- name: get npm cache directory
|
||||||
id: pnpm-cache-dir
|
id: pnpm-cache-dir
|
||||||
shell: bash
|
shell: bash
|
||||||
run: pnpm config set store-dir ~/.pnpm-store && echo "dir=~/.pnpm-store" >> ${GITHUB_OUTPUT}
|
run: pnpm config set store-dir .pnpm-store
|
||||||
|
- uses: actions/cache@v3
|
||||||
|
id: pnpm-cache
|
||||||
|
name: restore pnpm cache
|
||||||
|
with:
|
||||||
|
path: .pnpm-store
|
||||||
|
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-pnpm-
|
||||||
- name: pnpm install
|
- name: pnpm install
|
||||||
run: pnpm install --prefer-offline --frozen-lockfile
|
run: pnpm install --prefer-offline --frozen-lockfile
|
||||||
|
- uses: actions/cache/save@v3
|
||||||
|
name: save pnpm cache
|
||||||
|
if: steps.pnpm-cache.outputs.cache-hit != 'true'
|
||||||
|
with:
|
||||||
|
path: .pnpm-store
|
||||||
|
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml) }}
|
||||||
- uses: actions/cache@v3
|
- uses: actions/cache@v3
|
||||||
id: nuget-cache
|
id: nuget-cache
|
||||||
name: restore nuget cache
|
name: restore nuget cache
|
||||||
|
|
Loading…
Reference in a new issue