Skip to content

Merge pull request #2 from Design-System-Project/feature/tfr2-97-repo… #1

Merge pull request #2 from Design-System-Project/feature/tfr2-97-repo…

Merge pull request #2 from Design-System-Project/feature/tfr2-97-repo… #1

Workflow file for this run

name: 💾 Migrate DB
on:
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
migrate-db:
name: Migrate DB
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Enable Corepack
run: corepack enable
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
cache: 'pnpm'
- name: Install Dependencies
run: pnpm install
- name: Run Drizzle Migration
working-directory: apps/dashboard
run: pnpm db:migrate
env: # Or as an environment variable
POSTGRES_URL: ${{ secrets.POSTGRES_URL }}