From a7750def179c56babaabdfdb7a6f5b5c4ca357a2 Mon Sep 17 00:00:00 2001 From: rob thijssen Date: Thu, 25 Jun 2026 13:13:59 +0300 Subject: [PATCH] ci: install pnpm via npm (gongfoo rust image lacks corepack) The build job failed with `corepack: command not found`: Fedora's nodejs package (gongfoo runner-rust image) ships node + npm but not corepack. The job runs as root, so install pnpm globally via npm instead. Longer term, bake pnpm into the runner image to drop this step. Co-Authored-By: Claude Opus 4.8 (1M context) Claude-Session: https://claude.ai/code/session_01X7zF7Kf4JqDwa6M8Qgge9M --- .gitea/workflows/deploy.yml | 6 ++++-- .gitea/workflows/refresh.yml | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 42c7cc3..306b1eb 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -74,8 +74,10 @@ jobs: - name: Build web (vite client + prerender) run: | - corepack enable - corepack prepare pnpm@10 --activate + # The gongfoo rust image ships node + npm but not corepack (Fedora's + # nodejs package omits it), and the build job runs as root — so install + # pnpm globally via npm. Bake pnpm into the runner image to drop this. + npm install -g pnpm@10 pnpm --dir ui install --frozen-lockfile pnpm --dir ui run build diff --git a/.gitea/workflows/refresh.yml b/.gitea/workflows/refresh.yml index 662b3a1..4a197c1 100644 --- a/.gitea/workflows/refresh.yml +++ b/.gitea/workflows/refresh.yml @@ -38,8 +38,8 @@ jobs: - uses: actions/checkout@v4 - name: Build web (vite client + prerender) run: | - corepack enable - corepack prepare pnpm@10 --activate + # gongfoo rust image has node + npm but not corepack; job runs as root. + npm install -g pnpm@10 pnpm --dir ui install --frozen-lockfile pnpm --dir ui run build - uses: actions/upload-artifact@v3