Skip to content

add better env var in shcema #10

add better env var in shcema

add better env var in shcema #10

name: Prisma Production
on:
push:
branches:
- master
paths:
- "prisma/**"
jobs:
prisma-production:
if: >-
github.event.pull_request.user.login != 'renovate' &&
github.event.pull_request.user.login != 'renovate[bot]'
runs-on: ubuntu-latest
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
cache: "pnpm"
- name: Install dependencies
run: pnpm i --frozen-lockfile
- name: Deploy Migrations
run: pnpm prisma migrate deploy
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}