ci(github): add types check to lint workflow and pre-commit hook #6
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: lint | |
| on: [push, pull_request] | |
| permissions: | |
| contents: write | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v7 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| cache: npm | |
| node-version-file: .nvmrc | |
| - name: Install dependencies | |
| run: npm ci --prefer-offline | |
| - name: Run ESLint | |
| run: npm run lint | |
| - name: Build package | |
| run: npm run build | |
| - name: Type check | |
| run: npm run lint:tsc | |
| - name: Check types | |
| run: npm run lint:types |