Skip to content

[STG-BACK] Release

[STG-BACK] Release #37

name: Migrate Staging
on:
pull_request:
types: [closed]
branches:
- staging-backend
workflow_dispatch:
jobs:
migrate-staging:
runs-on: ubuntu-latest
environment: staging-migrate
concurrency:
group: staging-migrate
cancel-in-progress: false
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20.13.1"
cache: "pnpm"
- name: Install Dependencies
run: |
pnpm add -g turbo
pnpm install --frozen-lockfile
- name: Apply pending migrations
run: pnpm migrate up
env:
MIGRATE_MONGO_URI: ${{ secrets.MIGRATE_MONGO_URI }}