-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 937 Bytes
/
Copy pathci.yml
File metadata and controls
35 lines (33 loc) · 937 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: CI
on:
# Type-check pushes to main, but only when relevant files change.
push:
branches: [main]
paths:
- "**/*.ts" # Source
- "**/*.tsx"
- ".github/workflows/**" # Workflow changes
- "package.json" # Dependency/script changes
- "package-lock.json"
# Same checks for pull requests targeting main.
pull_request:
branches: [main]
paths:
- "**/*.ts"
- "**/*.tsx"
- ".github/workflows/**"
- "package.json"
- "package-lock.json"
jobs:
typecheck:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v7.0.1
- uses: actions/setup-node@v7.0.0
with:
node-version: 24
cache: npm # Reuse the npm download cache across runs
- run: npm ci # Reproducible install from the lockfile
- run: npm run typecheck
- run: npm run build # Ensure the published bundle compiles