updated deploy script
All checks were successful
Deploy to Vercel / deploy (push) Successful in 3m24s

This commit is contained in:
2026-04-30 14:43:47 +02:00
parent 2f1648b38e
commit ec0ee096b9

View File

@@ -3,6 +3,8 @@ name: Deploy to Vercel
on: on:
push: push:
branches: [master] branches: [master]
paths-ignore:
- '**.md'
jobs: jobs:
deploy: deploy:
@@ -10,31 +12,36 @@ jobs:
env: env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
steps: steps:
- name: Checkout - uses: actions/checkout@v4
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with: with:
version: 10 fetch-depth: 1
- name: Setup Node - name: Enable pnpm via corepack
uses: actions/setup-node@v4 run: |
corepack enable
corepack prepare pnpm@10 --activate
- name: Resolve pnpm store path
id: pnpm-store
run: echo "path=$(pnpm store path --silent)" >> $GITHUB_OUTPUT
- name: Cache pnpm store
uses: actions/cache@v4
with: with:
node-version: 24 path: ${{ steps.pnpm-store.outputs.path }}
cache: pnpm key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: pnpm-
- name: Install dependencies - name: Install dependencies
run: pnpm install --frozen-lockfile run: pnpm install --frozen-lockfile --prefer-offline
- name: Type check - name: Verify Vercel credentials
run: pnpm exec tsc --noEmit
- name: Debug
run: | run: |
echo "PROJECT_ID len: ${#VERCEL_PROJECT_ID}" [ -n "$VERCEL_TOKEN" ] && [ -n "$VERCEL_ORG_ID" ] && [ -n "$VERCEL_PROJECT_ID" ] || {
echo "PROJECT_ID first chars: ${VERCEL_PROJECT_ID:0:8}" echo "::error::One or more Vercel secrets are missing"; exit 1
}
- name: Deploy to Vercel - name: Deploy
run: npx vercel deploy --prod --yes --token=${{ secrets.VERCEL_TOKEN }} run: npx vercel deploy --prod --yes