message: check if build passes when using prefer-offline yarn install
diff: @@ -20,16 +20,19 @@ jobs:
  with:
  node-version: '${{ steps.nvm.outputs.NVMRC }}'
  - - name: Check for cached node_modules 2
  - uses: actions/cache@v2
  - id: yarn-cache
  + - name: Get yarn cache directory path
  + id: yarn-cache-dir-path
  + run: echo "::set-output name=dir::$(yarn cache dir)"
  +
  + - uses: actions/cache@v2
  with:
  - path: '**/node_modules'
  - key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
  + path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
  + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
  + restore-keys: |
  + ${{ runner.os }}-yarn-
  - name: Install dependencies
  - if: steps.yarn-cache.outputs.cache-hit != 'true'
  - run: yarn install --nonInteractive --frozen-lockfile
  + run: yarn install --nonInteractive --frozen-lockfile --prefer-offline
  - name: Lint
  run: yarn run lint:ci
  