From a0d1183fc0ffd343c05e2f50a3e8ffa60243a876 Mon Sep 17 00:00:00 2001 From: David Cook Date: Thu, 2 Feb 2023 11:51:13 +1100 Subject: [PATCH] Use yarn to install dependencies `reviewdoc-action-prettier` is automatically running npm, but we use Yarn, which handles unmet dependencies differently. Let's make it consistent. This caused the linter to fail when it didn't need to (https://github.com/openfoodfoundation/openfoodnetwork/pull/10300#issuecomment-1413004039). --- .github/workflows/linters.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml index a5f6a5d866..21219f9a2f 100644 --- a/.github/workflows/linters.yml +++ b/.github/workflows/linters.yml @@ -24,6 +24,14 @@ jobs: steps: - name: Check out code uses: actions/checkout@v3 + + - uses: actions/setup-node@v3 + with: + node-version: 16 + + - name: Install JS dependencies + run: yarn install --frozen-lockfile + - name: prettier uses: EPMatt/reviewdog-action-prettier@v1 with: