From 7177fa6b9a4556cf746f0350785d36c39ae160d4 Mon Sep 17 00:00:00 2001 From: Ronni Baslund Date: Mon, 8 Jun 2026 22:29:32 +0200 Subject: [PATCH] fix(ci): pin pnpm version in Actions (no root package.json to read) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit pnpm/action-setup ran with no version: `uses:` steps ignore defaults.run.working-directory, so it executed at the repo root, which has no package.json (per-app monorepo) → "No pnpm version specified". Pin version: 9 explicitly. Also drop setup-node's `cache: pnpm` — the act_runner cache server isn't reachable from the DinD job containers, and the install is fast anyway. --- .gitea/workflows/ci.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 8cda0e8..8631594 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -25,13 +25,16 @@ jobs: steps: - uses: actions/checkout@v4 + # `uses:` steps ignore defaults.run.working-directory, so action-setup runs + # at the repo root — which has no package.json (per-app monorepo). Pin the + # version explicitly instead of reading packageManager. - uses: pnpm/action-setup@v4 + with: + version: 9 - uses: actions/setup-node@v4 with: node-version: 22 - cache: pnpm - cache-dependency-path: ${{ matrix.target.dir }}/pnpm-lock.yaml - name: Install run: pnpm install --frozen-lockfile @@ -47,11 +50,11 @@ jobs: steps: - uses: actions/checkout@v4 - uses: pnpm/action-setup@v4 + with: + version: 9 - uses: actions/setup-node@v4 with: node-version: 22 - cache: pnpm - cache-dependency-path: services/platform-api/pnpm-lock.yaml - name: Install run: pnpm install --frozen-lockfile - name: Test