From 742f2d36e0d87c36867e9afabc4770297c40aae0 Mon Sep 17 00:00:00 2001 From: AlexMachin1997 Date: Thu, 31 Oct 2024 17:16:27 +0000 Subject: [PATCH] fix: Replaced linting action with a more up to date version --- .github/workflows/linting-action.yml | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/.github/workflows/linting-action.yml b/.github/workflows/linting-action.yml index 19f3a39..c92e367 100644 --- a/.github/workflows/linting-action.yml +++ b/.github/workflows/linting-action.yml @@ -1,8 +1,6 @@ name: Lint on: - # Trigger the workflow on push or pull request, - # but only for the main branch push: branches: - main @@ -20,16 +18,13 @@ jobs: uses: actions/checkout@v4 - name: Set up Node.js - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: - node-version: 12 + node-version: 20 + cache: 'yarn' - # ESLint and Prettier must be in `package.json` - - name: Install Node.js dependencies - run: npm ci + - name: Install dependencies + run: yarn install --frozen-lockfile - name: Run linters - uses: wearerequired/lint-action@v2 - with: - eslint: true - prettier: true + run: yarn lint # assumes you have a `lint` script in package.json for ESLint and Prettier