chore: moar cache
This commit is contained in:
parent
192767b6e3
commit
fac0282694
16
.github/workflows/dox.yml
vendored
16
.github/workflows/dox.yml
vendored
|
@ -2,7 +2,7 @@ name: Website
|
|||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
branches: [website]
|
||||
workflow_dispatch: {}
|
||||
|
||||
concurrency:
|
||||
|
@ -21,10 +21,22 @@ jobs:
|
|||
with:
|
||||
path: website
|
||||
ref: website
|
||||
|
||||
- name: Get npm cache directory
|
||||
id: npm-cache-dir
|
||||
shell: bash
|
||||
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
|
||||
- uses: actions/cache@v2
|
||||
id: npm-cache
|
||||
with:
|
||||
path: ${{ steps.npm-cache-dir.outputs.dir }}
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-node-
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: '**/node_modules'
|
||||
key: ${{ hashFiles('package-lock.json', 'website/package-lock.json') }}
|
||||
key: ${{ hashFiles('**/package-lock.json') }}
|
||||
- run: |
|
||||
npm install --omit=dev
|
||||
cd website
|
||||
|
|
Loading…
Reference in New Issue
Block a user