message: chore(configs): improve yarn cache
  Adapted from
  alpha
diff: -name: Release
  +name: Continous Integration
  on: [push]
  jobs:
  - release:
  + ci:
  runs-on: ubuntu-latest
  steps:
  - name: Checkout
  @@ -12,15 +12,17 @@ jobs:
  uses: actions/setup-node@v1
  with:
  node-version: 10.x
  + - name: Get yarn cache directory path
  + id: yarn-cache-dir-path
  + run: echo "::set-output name=dir::$(yarn cache dir)"
  - name: Cache dependencies
  uses: actions/cache@v1
  + id: yarn-cache
  with:
  - path: node_modules
  - key: ${{ runner.OS }}-node-${{ hashFiles('**/yarn.lock') }}
  + path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
  + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
  restore-keys: |
  - ${{ runner.OS }}-node-${{ env.cache-name }}-
  - ${{ runner.OS }}-node-
  - ${{ runner.OS }}-
  + ${{ runner.os }}-yarn-
  - name: Install dependencies
  run: |
  npm install -g yarn
  