From ee171a5f53e273a1470f04bcb0007aaca48e8d9f Mon Sep 17 00:00:00 2001 From: Michal Date: Wed, 14 Oct 2026 19:01:13 +0100 Subject: [PATCH] CI: pin pnpm from bastion/package.json and generate the Prisma client Every job on main has been failing at setup: pnpm/action-setup@v4 reads packageManager from the package.json at the REPO ROOT, and a job-level working-directory default does not apply to `uses:` steps, so the pin in bastion/package.json was never seen ("No pnpm version is specified"). Point the action at bastion/package.json so the version stays declared in exactly one place. Past setup, typecheck/test/build would then hit the next wall: labd's generated Prisma client does not exist after a fresh install (no postinstall hook, by design), and tsc --build fails on it. Run `pnpm -C src/labd run db:generate` right after install in the jobs that compile. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01V6HNx6cyr4J4CiMGCy1wkF --- .gitea/workflows/ci.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 7474bff..2223658 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -28,6 +28,8 @@ jobs: - uses: actions/checkout@v4 - uses: pnpm/action-setup@v4 + with: + package_json_file: bastion/package.json - uses: actions/setup-node@v4 with: @@ -47,6 +49,8 @@ jobs: - uses: actions/checkout@v4 - uses: pnpm/action-setup@v4 + with: + package_json_file: bastion/package.json - uses: actions/setup-node@v4 with: @@ -54,6 +58,9 @@ jobs: - run: pnpm install --frozen-lockfile + - name: Generate Prisma client (labd typecheck needs it) + run: pnpm -C src/labd run db:generate + - name: Typecheck run: pnpm typecheck @@ -66,6 +73,8 @@ jobs: - uses: actions/checkout@v4 - uses: pnpm/action-setup@v4 + with: + package_json_file: bastion/package.json - uses: actions/setup-node@v4 with: @@ -73,6 +82,9 @@ jobs: - run: pnpm install --frozen-lockfile + - name: Generate Prisma client (labd typecheck needs it) + run: pnpm -C src/labd run db:generate + - name: Build (needed by completions check) run: pnpm build @@ -91,6 +103,8 @@ jobs: - uses: actions/checkout@v4 - uses: pnpm/action-setup@v4 + with: + package_json_file: bastion/package.json - uses: actions/setup-node@v4 with: @@ -99,6 +113,9 @@ jobs: - name: Install dependencies run: pnpm install --frozen-lockfile + - name: Generate Prisma client (labd typecheck needs it) + run: pnpm -C src/labd run db:generate + - name: Build all packages run: pnpm build