chore(release): 1.73.0 #239
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 | |
on: | |
push: | |
branches: | |
- main | |
defaults: | |
run: | |
working-directory: ./remix-ui | |
jobs: | |
deploy: | |
name: Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Get package manager version | |
id: get-pnpm-version | |
run: echo "version=$(cat package.json | jq -r .packageManager | sed s/pnpm@//)" >> $GITHUB_OUTPUT | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: ${{ steps.get-pnpm-version.outputs.version }} | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: remix-ui/package.json | |
cache-dependency-path: remix-ui/pnpm-lock.yaml | |
cache: pnpm | |
- name: Download deps | |
run: pnpm install --frozen-lockfile | |
- name: Apply all pending migrations to the database | |
run: pnpm prisma migrate deploy | |
env: | |
DATABASE_URL: ${{ secrets.DATABASE_URL }} | |
DIRECT_URL: ${{ secrets.DATABASE_URL }} |