Skip to content

Add production migrate workflow before source map deploy - #673

Merged
cursor[bot] merged 1 commit into
developfrom
cursor/prod-migrate-before-release-f4fb
Sep 25, 2026
Merged

cursor[bot] merged 1 commit into
developfrom
cursor/prod-migrate-before-release-f4fb

Conversation

@unjica

@unjica unjica commented Sep 25, 2026

Copy link
Copy Markdown
Collaborator

Summary

One-shot production workflow so prisma migrate deploy runs against the production database before the API that reads source_map_upload is promoted.

phase=migrate applies migrations and checks the column. phase=smoke runs after the new API is live.

Secrets are not printed.

Checklist

  • No product behavior change in the running API
  • Uses the existing production DATABASE_URL environment secret
Open in Web Open in Cursor 

Comment on lines +17 to +48
runs-on: ubuntu-latest
environment: production
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- run: pnpm install --frozen-lockfile
- name: Migrate production database
if: inputs.phase == 'migrate'
working-directory: apps/api
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
run: pnpm exec prisma migrate deploy
- name: Verify source_map_upload column
if: inputs.phase == 'migrate'
working-directory: apps/api
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
run: node scripts/production-source-map-smoke.mjs verify
- name: Build SDKs for crash smoke
if: inputs.phase == 'smoke'
run: pnpm --filter @telemetry-tracker/core build && pnpm --filter @telemetry-tracker/node build
- name: Production smoke
if: inputs.phase == 'smoke'
working-directory: apps/api
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
API_BASE_URL: https://api.telemetry-tracker.com
run: node scripts/production-source-map-smoke.mjs smoke
@cursor
cursor Bot merged commit b2e00de into develop Sep 25, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants