mirror of
https://github.com/142vip/408CSFamily.git
synced 2026-04-14 02:09:56 +08:00
fix(GitHub Actions): 修复CD流水线中vercel命令使用异常,避免冗余安装模块
This commit is contained in:
9
.github/workflows/CD.yaml
vendored
9
.github/workflows/CD.yaml
vendored
@@ -88,15 +88,18 @@ jobs:
|
||||
|
||||
# # 注意: 这里的操作时间vercel平台配置的命令拉取下来,执行
|
||||
- name: Pull Vercel Environment Information
|
||||
run: npm i -g vercel && vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
|
||||
run: |
|
||||
npx vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
|
||||
|
||||
# # 执行vercel平台配置的命令
|
||||
- name: Build Project Artifacts
|
||||
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
|
||||
run: |
|
||||
npx vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
|
||||
|
||||
# # dist文件同步到vercel平台
|
||||
- name: Deploy Project Artifacts to Vercel
|
||||
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
|
||||
run: |
|
||||
npx vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
|
||||
|
||||
# # 版本发布
|
||||
release:
|
||||
|
||||
Reference in New Issue
Block a user