Skip to content

wip

wip #17

Workflow file for this run

name: Migrate DB and Deploy
on:
push:
branches:
- main
jobs:
migrate-and-deploy:
runs-on: ubuntu-latest
environment: Production
env:
DATABASE_URL_DIRECT: ${{ secrets.DATABASE_URL_DIRECT }}
VERCEL_GITHUB_ACTIONS_TOKEN: ${{ secrets.VERCEL_GITHUB_ACTIONS_TOKEN }}
VERCEL_SCOPE: ${{ secrets.VERCEL_SCOPE }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 10.18.3
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 24
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run database migrations
run: pnpm db:migrate
- name: Deploy to Vercel
run: |
pnpm dlx vercel deploy \
--prod \
--yes \
--token=$VERCEL_GITHUB_ACTIONS_TOKEN \
--scope=$VERCEL_SCOPE