fix: 调整类型检查步骤的位置,确保构建后进行类型检查
Some checks failed
/ build-and-deploy-to-vercel (push) Successful in 3m6s
/ lint-build-and-check (push) Successful in 4m8s
/ playwright (push) Has been cancelled
/ surge (push) Has been cancelled

This commit is contained in:
严浩
2025-04-01 11:58:55 +08:00
parent 8f2a77702b
commit 9166bca070

View File

@ -16,14 +16,6 @@ jobs:
run: pnpm run lint
- name: 📦 构建项目
run: pnpm run build-only
- name: ✅ 类型检查
run: pnpm run type-check # 要先 build保证 components.d.ts 存在
- run: npx depcheck || true
- run: node .github/.depcheck.js
- run: npx taze --help
- run: npx taze
- run: npx taze -a
# - run: npx size-limit
- name: 计算构建大小
run: |
echo "📊 构建大小统计:"
@ -33,3 +25,11 @@ jobs:
echo "🔹 以KB为单位: $(du -sk dist | cut -f1) KB"
echo "🔹 文件总数: $(find dist -type f | wc -l) 个文件"
echo "----------------------------------------"
- name: ✅ 类型检查
run: pnpm run type-check # 要先 build保证 components.d.ts 存在
- run: npx depcheck || true
- run: node .github/.depcheck.js
- run: npx taze --help
- run: npx taze
- run: npx taze -a
# - run: npx size-limit