feat: 更新 CI 工作流,调整构建和类型检查顺序
Some checks failed
/ playwright (push) Has been cancelled
/ depcheck (push) Has been cancelled
/ build-and-deploy-to-vercel (push) Has been cancelled

This commit is contained in:
严浩
2025-01-05 23:02:24 +08:00
parent 6309f1a7d7
commit b638926537

View File

@ -10,9 +10,6 @@ jobs:
- uses: yanhao98/composite-actions/setup-node-environment@main
- name: 静态代码分析
run: pnpm run lint
- run: pnpm run build-only # 先 build保证 components.d.ts 存在
- run: pnpm run type-check
# https://github.com/vercel/examples/tree/main/ci-cd/github-actions
# cname-cn.vercel.com cname-china.vercel-dns.com
- name: 拉取 Vercel 环境信息
@ -21,6 +18,7 @@ jobs:
run: pnpm exec vercel build --target=production --token=${{ secrets.VERCEL_TOKEN }}
env:
VITE_BUILD_COMMIT: ${{ github.sha }}
- run: pnpm run type-check # 要先 build保证 components.d.ts 存在
- name: 部署到 Vercel
run: pnpm exec vercel deploy --prebuilt --target=production --token=${{ secrets.VERCEL_TOKEN }}