ci: enforce type checking

This commit is contained in:
thislight 2024-12-04 20:45:29 +08:00
parent 530a89755c
commit bffa896184
No known key found for this signature in database
GPG key ID: FCFE5192241CCD4E
2 changed files with 5 additions and 1 deletions

View file

@ -30,6 +30,9 @@ jobs:
- name: Install Dependencies
run: bun install
- name: Validate types
run: bun typecheck
- name: Build Dist (Staging)
run: VITE_CODE_VERSION=$GITHUB_SHA bun dist -m staging
if: env.GITHUB_REF_NAME == 'master'

View file

@ -9,7 +9,8 @@
"dev": "vite --host 0.0.0.0",
"preview": "vite preview",
"dist": "vite build",
"count-source-lines": "exec scripts/src-lc.sh"
"count-source-lines": "exec scripts/src-lc.sh",
"typecheck": "tsc --noEmit --skipLibCheck"
},
"keywords": [],
"author": "Rubicon",