Skip to content

(fix and update) github actions implementation and also deployment sc… - #23

Merged
TheCodeHeist-Coder merged 2 commits into
mainfrom
battle-arena-and-league-improvements
Sep 12, 2026
Merged

TheCodeHeist-Coder merged 2 commits into
mainfrom
battle-arena-and-league-improvements

Conversation

@TheCodeHeist-Coder

Copy link
Copy Markdown
Owner

…ript ready

TheCodeHeist-Coder and others added 2 commits September 13, 2026 02:56
All six checks failed on push. None of it reproduced locally, because
every failure came from state a working copy has and a fresh CI
checkout does not.

1. prisma.config.ts resolved DATABASE_URL through prisma's env() helper,
   which throws while the config is being LOADED if the variable is
   missing. .env is gitignored, so `prisma generate` — an offline codegen
   step that never connects — died on PrismaConfigEnvError. That killed
   the quality and build jobs, and the deploy verify job with them.
   Read via process.env instead; commands that truly need a database
   still fail at connect time, which is the right place for it.

2. turbo's check-types depended on ^check-types, which typechecks a
   dependency without emitting its dist/. Packages resolve each other's
   types through dist/, so on a checkout with no prior build, @repo/game
   could not find @repo/protocol. Depend on ^build instead.

3. The test job ran tsc with no dependency build at all; same missing
   module, so build @repo/game's deps first.

4. DIFFICULTY_WEIGHT.HARD is possibly-undefined under
   noUncheckedIndexedAccess — a real error that local turbo cache was
   replaying a stale pass for.

5. pnpm 10 was silently skipping install scripts for prisma,
   @prisma/engines, esbuild, sharp and msgpackr-extract, so their
   binaries were never fetched. Allow them via only-built-dependencies.

Verified by running all three jobs against a clean `git archive` export
with no .env, no node_modules and no dist: quality 13/13, tests 156/156,
build 9/9.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@TheCodeHeist-Coder
TheCodeHeist-Coder merged commit f3240ed into main Sep 12, 2026
6 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.

1 participant