chore: Update package.json dependencies and add Vercel and Surge
All checks were successful
CI / cache-and-install (push) Successful in 1m54s

This commit is contained in:
严浩
2024-09-18 12:25:30 +08:00
parent ad1b6ed1ae
commit dfd508e3b8
3 changed files with 2059 additions and 13 deletions

View File

@ -37,17 +37,10 @@ jobs:
- name: Lint
run: pnpm lint
- name: Build
run: pnpm build
env:
VITE_BUILD_COMMIT: ${{ github.sha }}
# https://github.com/Tencent/tdesign-vue-next/pull/1604#issuecomment-1236244550
- name: Surge
# pnpx surge token
run: |
cp dist/index.html dist/200.html
pnpx surge dist https://vue-ts-example.surge.sh --token ${{ secrets.SURGE_TOKEN }}
# - name: Build
# run: pnpm build
# env:
# VITE_BUILD_COMMIT: ${{ github.sha }}
# https://github.com/vercel/examples/tree/main/ci-cd/github-actions
# - name: Install Vercel CLI
@ -60,3 +53,10 @@ jobs:
VITE_BUILD_COMMIT: ${{ github.sha }}
- name: Deploy Project Artifacts to Vercel
run: pnpx vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
# https://github.com/Tencent/tdesign-vue-next/pull/1604#issuecomment-1236244550
- name: Surge
# pnpx surge token
run: |
cp dist/index.html dist/200.html
pnpx surge dist https://vue-ts-example.surge.sh --token ${{ secrets.SURGE_TOKEN }}