1
0
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:
142vip.cn
2024-09-25 16:38:14 +08:00
parent 14a322e9dc
commit e264c49799

View File

@@ -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: