Update ci.yaml to use pnpm instead of pnpx for Vercel commands

This commit is contained in:
严浩
2024-09-26 14:09:06 +08:00
parent 088e9f0ad7
commit 1d41cd4011
2 changed files with 3 additions and 3 deletions

View File

@@ -54,11 +54,11 @@ jobs:
- name: Pull Vercel Environment Information
run: pnpm exec vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts
run: pnpm exec vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
run: pnpm exec vercel build --target=production --token=${{ secrets.VERCEL_TOKEN }}
env:
VITE_BUILD_COMMIT: ${{ github.sha }}
- name: Deploy Project Artifacts to Vercel
run: pnpm exec vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
run: pnpm exec vercel deploy --prebuilt --target=production --token=${{ secrets.VERCEL_TOKEN }}
# https://github.com/Tencent/tdesign-vue-next/pull/1604#issuecomment-1236244550
- name: Surge