4 min read
Production Deployment and CI/CD
A typical CI pipeline for a TypeScript project runs the type check, tests, and build as separate steps, so a type error fails the build the same way a failing test would.
# .github/workflows/test.yml
name: Tests
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm install
- run: npx tsc --noEmit
- run: npm test
- run: npm run build