Skip to content

chore(deps): bump the all-updates group across 1 directory with 5 updates #240

chore(deps): bump the all-updates group across 1 directory with 5 updates

chore(deps): bump the all-updates group across 1 directory with 5 updates #240

name: Database migration
permissions:
contents: read
on:
pull_request:
branches:
- master
types:
- opened
- synchronize
push:
branches:
- master
jobs:
migration:
runs-on: ubuntu-24.04
environment: ${{ github.event_name == 'pull_request' && 'staging' || 'production' }}
steps:
- uses: Perdolique/automations/.github/actions/setup-pnpm@v2
with:
install-dependencies: true
- name: Run database migration
env:
NUXT_DATABASE_URL: ${{ secrets.NUXT_DATABASE_URL }}
run: pnpm run db:migrate
- name: Seed database
if: github.event_name == 'pull_request'
env:
NUXT_DATABASE_URL: ${{ secrets.NUXT_DATABASE_URL }}
run: pnpm run db:seed