feat: 更新 CI 工作流,调整构建和类型检查顺序
This commit is contained in:
4
.github/workflows/ci.yaml
vendored
4
.github/workflows/ci.yaml
vendored
@ -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 }}
|
||||
|
||||
|
Reference in New Issue
Block a user