Merge pull request #2 from Design-System-Project/feature/tfr2-97-repo… #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |