ci(migrations): run deploy-migrations on Node 22 + allow manual dispatch#319
Merged
Merged
Conversation
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 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Jun 17, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The Deploy Database Migrations workflow runs
npm cion Node 18, but the repo now depends onprisma@7.8.0, which refuses to install on Node<20.19via a preinstall engine gate:So
npm ciexits 1 beforeprisma migrate deployever runs. The job has been failing on every push tomainthat touchesprisma/migrations/**.Production impact: the most recent
mainrun (after #303 merged) failed this way, so the20260614120000_add_proposal_tallymigration was not applied — theProposalTallytable is missing in prod and the governance vote-tally router (#302) errors until it exists.Fix
setup-nodeto 22 (matchespr-checks,unit-tests,trpc-integration-tests,ci-smoke-preprod).workflow_dispatchtrigger. The workflow otherwise only fires on a push underprisma/migrations/**; since the migration is already merged (no new file to push),workflow_dispatchis the only way to apply it once this fix reachesmain.After this lands on
mainProposalTallymigration to prod.daily-balance-snapshots.ymlalso pins Node 18 but installs from the self-containedscripts/dir (no root Prisma) — left untouched here.🤖 Generated with Claude Code