Skip to content

feat: dev updates, Next.js 15 migration and fixes #9

feat: dev updates, Next.js 15 migration and fixes

feat: dev updates, Next.js 15 migration and fixes #9

Workflow file for this run

name: Neon Database Branching
on:
pull_request:
types: [opened, synchronize, reopened, closed]
jobs:
setup-neon-branch:
if: github.event.action != 'closed'
runs-on: ubuntu-latest
steps:
- name: Create Neon Branch
uses: neondatabase/create-branch-action@v5
with:
project_id: ${{ vars.NEON_PROJECT_ID }}
branch_name: preview/pr-${{ github.event.number }}
api_key: ${{ secrets.NEON_API_KEY }}
delete-neon-branch:
if: github.event.action == 'closed'
runs-on: ubuntu-latest
steps:
- name: Delete Neon Branch
uses: neondatabase/delete-branch-action@v3
with:
project_id: ${{ vars.NEON_PROJECT_ID }}
branch: preview/pr-${{ github.event.number }}
api_key: ${{ secrets.NEON_API_KEY }}