From 409a07a8ee003f117a7ca51ed535a04b9098bfe2 Mon Sep 17 00:00:00 2001 From: Richard Tibbles Date: Mon, 22 Aug 2022 09:06:23 -0700 Subject: [PATCH] Update lint action to use yarn lockfile. --- .github/workflows/lint.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 0f4aca1f2..1067f612b 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -13,15 +13,15 @@ jobs: with: node-version: 10.x - - name: npm load cache + - name: Cache Node.js modules uses: actions/cache@v2 with: path: '**/node_modules' - key: ${{ runner.os }}-actions-npm-${{ github.sha }} + key: ${{ runner.OS }}-node-${{ hashFiles('**/yarn.lock') }} restore-keys: | - ${{ runner.os }}-actions-npm- + ${{ runner.OS }}-node- - - run: npm install + - run: yarn --frozen-lockfile - name: Pre-generate docs run: yarn run pregenerate