Skip to content

Commit 3d2ff6b

Browse files
committed
ci: add TypeScript type checking to CI workflows
- Add 'typecheck' script to package.json for local use - Add type check step to lint job in CI - Add type check step to release workflow before publishing Signed-off-by: leocavalcante <leo@cavalcante.dev>
1 parent 930d599 commit 3d2ff6b

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ jobs:
2020
- name: Install dependencies
2121
run: bun install --ignore-scripts
2222

23+
- name: Check types
24+
run: bun run typecheck
25+
2326
- name: Check formatting and lint
2427
run: bun run lint
2528

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ jobs:
2828
- name: Install dependencies
2929
run: bun install --ignore-scripts
3030

31+
- name: Check types
32+
run: bun run typecheck
33+
3134
- name: Run linter
3235
run: bun run lint
3336

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"postinstall": "node postinstall.mjs",
1515
"preuninstall": "node preuninstall.mjs",
1616
"test": "bun test",
17+
"typecheck": "bun tsc --noEmit",
1718
"lint": "bunx biome check .",
1819
"lint:fix": "bunx biome check --write .",
1920
"format": "bunx biome format --write ."

0 commit comments

Comments
 (0)