Commit bece819b authored by Nicholas Bollweg's avatar Nicholas Bollweg
Browse files

improve node_modules/yarn caching

parent c6cacef7
......@@ -21,12 +21,15 @@ jobs:
node-version: '14.x'
- name: Cache node modules
uses: actions/cache@v2
id: cache-node-modules
with:
path: 'node_modules/'
key: |
${{ env.CACHE_EPOCH }}-${{ runner.os }}-node-modules-${{ hashFiles('yarn.lock') }}
- name: Cache yarn packages
uses: actions/cache@v2
id: cache-yarn-packages
if: steps.cache-node-modules.outputs.cache-hit != 'true'
with:
path: '.yarn-packages'
key: |
......@@ -34,8 +37,9 @@ jobs:
restore-keys: |
${{ env.CACHE_EPOCH }}-yarn-packages-
- name: Install
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: |
yarn
yarn --frozen-lockfile
- name: Build
run: |
yarn build
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment