Skip to content

Reset Preview DB

Reset Preview DB #4

name: Reset Preview DB
on:
workflow_dispatch:
jobs:
migrate:
runs-on: ubuntu-latest
environment: Preview
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Reset
working-directory: ./packages/hub
env:
DATABASE_URL: "${{ secrets.DATABASE_DIRECT_URL }}"
run: npx prisma migrate reset --force