ci: 👷 add nextjs cache

This commit is contained in:
Anthony Potdevin 2020-12-20 01:03:23 +01:00
parent 0ec651d7b0
commit 6312cfbd9f
No known key found for this signature in database
GPG key ID: 4403F1DFBE779457

View file

@ -18,6 +18,11 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: '14'
- name: Use NextJS Cache
uses: actions/cache@v2
with:
path: ${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}
- name: Install deps
run: npm ci
- name: Test and build