chore: Update package.json dependencies and add Vercel and Surge
All checks were successful
CI / cache-and-install (push) Successful in 1m54s
All checks were successful
CI / cache-and-install (push) Successful in 1m54s
This commit is contained in:
@ -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 }}
|
||||
|
Reference in New Issue
Block a user