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) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01X7zF7Kf4JqDwa6M8Qgge9M
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user