[STG-BACK] Release #37
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: 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 }} |