decrease padding between sections (#56) #12
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: 🛜 DB Migrations to Production | |
on: | |
push: | |
branches: | |
- "main" | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
environment: Production | |
steps: | |
- name: 🏪 Checkout repo | |
uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v3 | |
name: 🏠 Setup pnpm | |
with: | |
run_install: false | |
version: latest | |
- name: 📁 Get pnpm store directory | |
shell: bash | |
run: | | |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | |
- uses: actions/cache@v4 | |
name: 👷♂️ Setup pnpm cache | |
with: | |
path: ${{ env.STORE_PATH }} | |
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm-store- | |
- name: 🖥️ Install dependencies | |
run: pnpm install | |
- name: 🎠 Apply all pending migrations to the database | |
run: npx prisma migrate deploy | |
env: | |
DATABASE_URL: ${{ secrets.DATABASE_URL }} | |
DIRECT_DATABASE_URL: ${{ secrets.DIRECT_DATABASE_URL }} |