| 1 | name: Lint packages |
| 2 | |
| 3 | on: |
| 4 | workflow_dispatch: |
| 5 | push: |
| 6 | pull_request: |
| 7 | |
| 8 | jobs: |
| 9 | lint: |
| 10 | runs-on: ubuntu-latest |
| 11 | steps: |
| 12 | - uses: actions/checkout@v4 |
| 13 | - name: Use Node.js v20 |
| 14 | uses: actions/setup-node@v4 |
| 15 | with: |
| 16 | node-version: 20 |
| 17 | - uses: pnpm/action-setup@v4 |
| 18 | - name: Install dependencies and build # build is a postinstall script |
| 19 | run: pnpm install --frozen-lockfile |
| 20 | - name: Lint packages |
| 21 | run: pnpm lint |