Skip to content

Commit

Permalink
build: cache yarn directory instead of node_modules (#1404)
Browse files Browse the repository at this point in the history
  • Loading branch information
malept committed Jan 15, 2020
1 parent 1512bb7 commit ded1a5f
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/ci.yml
Expand Up @@ -48,15 +48,16 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 8.x
- name: Cache node_modules
- name: Determine Yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Cache Yarn
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.OS }}-build-${{ hashFiles('**/yarn.lock') }}
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.OS }}-build-${{ env.cache-name }}-
${{ runner.OS }}-build-
${{ runner.OS }}-
${{ runner.os }}-yarn-
- name: Install bolt
shell: bash
run: |
Expand Down

0 comments on commit ded1a5f

Please sign in to comment.