GitHub Actions Lint-Only Workflow Builder

Generate a fast lint-check workflow to run on every PR

Creates a GitHub Actions workflow YAML that runs ESLint, a Prettier format check, and a TypeScript type-check on pull requests, with dependency caching and a configurable Node version for fast CI feedback.

Where do I put the generated workflow file?

Save it as a .yml file inside the .github/workflows directory at the root of your repository — for example .github/workflows/lint.yml. GitHub Actions automatically picks up any workflow file in that folder once it's committed to your default branch or a branch with an open PR.

The GitHub Actions Lint-Only Workflow Builder generates a ready-to-commit CI workflow that runs the three fast static checks every pull request should pass: ESLint, a Prettier format check, and a TypeScript type-check. Because these finish in seconds, a dedicated lint workflow gives contributors near-instant feedback without waiting on a full test suite.

How it works

You select your package manager (npm, pnpm, or yarn), the Node version to run on, and which of the three checks to include. The builder writes a workflow triggered on pull_request (and optionally push) that checks out the code, sets up Node with dependency caching keyed on your lockfile, installs with the right command, and runs each enabled check as its own step. Splitting the checks into separate steps means the Actions log shows exactly which one failed.

The generated workflow

The output is a complete YAML file you save as .github/workflows/lint.yml. It uses actions/checkout and actions/setup-node with the built-in cache option, runs npm ci (or the pnpm/yarn equivalent), then runs eslint ., prettier --check ., and tsc --noEmit depending on your toggles. Each step is named so failures are obvious in the PR’s checks panel.

Tips and notes

  • Match the scripts to your package.json. If you use npm run lint rather than calling ESLint directly, swap the command — the workflow is a starting point.
  • Cache is the big win. The setup-node cache turns a one-minute install into a few seconds on unchanged lockfiles.
  • Pair with tests. Run this fast workflow next to a slower test job so contributors get the quick red/green signal immediately.