1
0
mirror of https://github.com/kremalicious/portfolio.git synced 2024-11-15 01:25:25 +01:00

caching tweak

This commit is contained in:
Matthias Kretschmann 2019-11-14 01:02:49 +01:00
parent f04763c1b3
commit 4ca211bf5c
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -20,22 +20,25 @@ jobs:
- name: Cache node modules
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }}
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-build-${{ env.cache-name }}-
${{ runner.OS }}-build-
${{ runner.OS }}-
${{ runner.os }}-node-
- name: Cache Gatsby build output
uses: actions/cache@v1
with:
path: public
key: ${{ runner.os }}-public
- name: Install Dependencies
run: |
npm ci
run: npm ci
- name: Test
run: |
npm test
run: npm test
- name: Build
run: |
npm run build --if-present
run: npm run build --if-present
env:
CI: true
GATSBY_GITHUB_TOKEN: ${{ secrets.GATSBY_GITHUB_TOKEN }}