41 lines
921 B
YAML
41 lines
921 B
YAML
name: Deploy to Vercel
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
|
|
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup pnpm
|
|
uses: pnpm/action-setup@v4
|
|
with:
|
|
version: 10
|
|
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 24
|
|
cache: pnpm
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Type check
|
|
run: pnpm exec tsc --noEmit
|
|
|
|
- name: Debug
|
|
run: |
|
|
echo "PROJECT_ID len: ${#VERCEL_PROJECT_ID}"
|
|
echo "PROJECT_ID first chars: ${VERCEL_PROJECT_ID:0:8}"
|
|
|
|
- name: Deploy to Vercel
|
|
run: npx vercel deploy --prod --yes --token=${{ secrets.VERCEL_TOKEN }}
|