Run ESLint and Prettier in CI.
- Type:
string
- Required:
false
- Default:
"20"
- Description: Node.js version to be used.
Create a workflow file, e.g., .github/workflows/release.yml
.
Make sure ESLint and Prettier are configured for your project (probably using yaks) and your package.json has the packageManager
field filled in.
{
"packageManager": "pnpm@9.6.0"
}
name: Lint
on:
pull_request:
branches:
- main
jobs:
lint:
uses: reuters-graphics/action-workflows/.github/workflows/lint.yaml@main
secrets: inherit
name: Lint
on:
pull_request:
branches:
- main
jobs:
lint:
uses: reuters-graphics/action-workflows/.github/workflows/lint.yaml@main
secrets: inherit
with:
node_version: '22'