build(deps-dev): bump the commitlint group with 2 updates #4
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: read | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - 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: Build package | |
| run: npm run build | |
| - name: Run ESLint | |
| run: npm run lint | |
| - name: Type check | |
| run: npm run lint:tsc | |
| - name: Lint package | |
| run: npm run lint:package | |
| - name: Check types | |
| run: | | |
| npx @arethetypeswrong/cli --pack | |
| if [[ "$(npx @arethetypeswrong/cli --pack -f json | jq '.problems != {}')" == 'true' ]]; then | |
| npx @arethetypeswrong/cli --pack -f json | jq | |
| exit 1 | |
| fi |