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