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 lintrather than calling ESLint directly, swap the command — the workflow is a starting point. - Cache is the big win. The
setup-nodecache 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.