feat(users): Add public.users table and new users to it #1
Workflow file for this run
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: deploy | ||
run-name: Reusable deploy workflow to deploy database changes to the target Supabase database. | ||
on: | ||
workflow_call: | ||
inputs: | ||
environment: | ||
required: true | ||
type: string | ||
jobs: | ||
prisma-migrate-deploy: | ||
name: Run prisma migrations | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: ${{ inputs.environment }} | ||
env: | ||
DATABASE_URL: ${{ secrets.DATABASE_URL }} | ||
DATABASE_DIRECT_URL: ${{ secrets.DATABASE_DIRECT_URL }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
cache: 'npm' | ||
node-version-file: '.nvmrc' | ||
- run: | | ||
echo "inputs.environment: ${{ inputs.environment }}" | ||
npx [email protected] migrate deploy | ||