CI: install pnpm and openspec into a job-local prefix (concurrent jobs collided in the toolcache)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
b517072362
commit
c55e9ce840
@ -35,7 +35,10 @@ jobs:
|
||||
- name: tools
|
||||
run: |
|
||||
apt-get update -qq && apt-get install -y -qq tmux >/dev/null
|
||||
npm install -g pnpm@12.18.0 @fission-ai/openspec@2.0.0 >/dev/null
|
||||
# Job-local prefix: the node toolcache is shared between jobs running at the same time
|
||||
# (PR + push of one commit), and two global installs into it collide (ENOTEMPTY/EEXIST).
|
||||
npm install -g --prefix "$RUNNER_TEMP/tools" pnpm@12.18.0 @fission-ai/openspec@2.0.0 >/dev/null
|
||||
echo "$RUNNER_TEMP/tools/bin" >> "$GITHUB_PATH"
|
||||
- id: install
|
||||
name: install
|
||||
run: bash .gitea/peppa-check.sh install
|
||||
|
||||
Loading…
Reference in New Issue
Block a user