ci: install pnpm via npm (gongfoo rust image lacks corepack)
Some checks failed
deploy / Build api + worker + web (push) Waiting to run
deploy / Deploy moments-api to nikola (push) Has been cancelled
deploy / Deploy moments-worker to frootmig (push) Has been cancelled
deploy / Deploy web to oolon (push) Has been cancelled

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) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01X7zF7Kf4JqDwa6M8Qgge9M
This commit is contained in:
2026-06-25 13:13:59 +03:00
parent 3761333ac4
commit a7750def17
2 changed files with 6 additions and 4 deletions

View File

@@ -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