From 166bace0f939cdf774266131746b0d4fa4acab6d Mon Sep 17 00:00:00 2001 From: QSchlegel Date: Wed, 17 Jun 2026 14:34:27 +0200 Subject: [PATCH] ci(migrations): run deploy-migrations on Node 22 + allow manual dispatch The deploy-migrations workflow pinned Node 18, but the repo now depends on prisma@7.8.0, which refuses to install on Node <20.19 (preinstall engine gate). npm ci failed before `prisma migrate deploy` ever ran, so the 20260614120000_add_proposal_tally migration never reached production. - Bump setup-node to 22, matching pr-checks/unit-tests/trpc/ci-smoke. - Add workflow_dispatch so a pending migration can be applied without pushing a fresh file under prisma/migrations/** (this workflow only triggers on that path otherwise). Co-Authored-By: Claude Opus 4.8 --- .github/workflows/deploy-migrations.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-migrations.yml b/.github/workflows/deploy-migrations.yml index 7523868b..1da1822b 100644 --- a/.github/workflows/deploy-migrations.yml +++ b/.github/workflows/deploy-migrations.yml @@ -5,6 +5,8 @@ on: - prisma/migrations/** branches: - main + # Allow manual runs so a migration can be applied without a fresh push under prisma/migrations/** + workflow_dispatch: jobs: deploy-migrations: @@ -16,7 +18,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v6 with: - node-version: '18' + node-version: '22' cache: 'npm' - name: Install dependencies