add more caching
This commit is contained in:
parent
7189d87a0b
commit
e1500e8174
1 changed files with 11 additions and 0 deletions
|
@ -14,6 +14,17 @@ jobs:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: install pnpm
|
- name: install pnpm
|
||||||
run: npm install -g pnpm
|
run: npm install -g pnpm
|
||||||
|
- name: Get npm cache directory
|
||||||
|
id: pnpm-cache-dir
|
||||||
|
shell: bash
|
||||||
|
run: echo "dir=$(pnpm store path)" >> ${GITHUB_OUTPUT}
|
||||||
|
- uses: actions/cache@v3
|
||||||
|
id: npm-cache
|
||||||
|
with:
|
||||||
|
path: ${{ steps.npm-cache-dir.outputs.dir }}
|
||||||
|
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-node-
|
||||||
- name: restore pnpm cache
|
- name: restore pnpm cache
|
||||||
uses: actions/cache/restore@v3
|
uses: actions/cache/restore@v3
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in a new issue