feat: fix form #58
This file contains hidden or 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: Apply schema migrations | |
| # 👉 Only run this workflow when a change is made to the main branch | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| apply_migrations: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 9.0.0 | |
| - name: Install dependencies & tooling | |
| run: | | |
| pnpm install | |
| pnpm add -g drizzle-orm drizzle-kit pg | |
| - name: Apply migrations using drizzle-kit | |
| run: cd packages/database && pnpm run db:migrate | |
| env: | |
| DATABASE_URL: ${{ secrets.DATABASE_URL }} | |
| UPSTASH_REDIS_REST_URL: ${{ secrets.UPSTASH_REDIS_REST_URL }} | |
| UPSTASH_REDIS_REST_TOKEN: ${{ secrets.UPSTASH_REDIS_REST_TOKEN }} |