release 2.4.0 #45
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: TypeScript types | |
| on: | |
| push: | |
| branches: [master, main] | |
| paths: | |
| - 'ts/**' | |
| - 'index.js' | |
| - 'index.mjs' | |
| - 'package.json' | |
| - '.github/workflows/types.yml' | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| permissions: | |
| contents: read | |
| jobs: | |
| typecheck: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| - name: Install type-check dependencies | |
| run: npm install --no-save typescript @types/node | |
| - name: Check CJS types (index.d.ts via require) | |
| run: npx tsc --project ts/tsconfig.json | |
| - name: Check ESM types (index.d.mts via import) | |
| run: npx tsc --project ts/tsconfig.mjs.json |