chore: moar cache

This commit is contained in:
cha0s 2024-02-13 04:39:39 -06:00
parent 192767b6e3
commit fac0282694

View File

@ -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