Skip to content

Commit 3d8dc1b

Browse files
djkazicclaude
andcommitted
ci: install yarn on self-hosted runners and drop hosted cleanup step
Self-hosted runners don't ship yarn preinstalled the way GitHub-hosted runners do, so 'yarn' was failing with command not found. Enable it via corepack in the setup-node action. Also drop the cross-compile cleanup step that removed /opt/hostedtoolcache, which is a GitHub-hosted-runner path and fails with permission denied on self-hosted. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 889a982 commit 3d8dc1b

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

.github/actions/setup-node/action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ runs:
2020
with:
2121
node-version: '${{ inputs.node-version }}'
2222

23+
- name: enable yarn
24+
shell: bash
25+
run: corepack enable || npm install -g yarn
26+
2327
- name: get yarn cache dir
2428
id: yarn-cache-dir
2529
shell: bash

.github/workflows/main.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,6 @@ jobs:
115115
- name: arm
116116
sys: darwin-arm64 linux-armv6 linux-armv7 linux-arm64
117117
steps:
118-
- name: cleanup space
119-
run: rm -rf /opt/hostedtoolcache
120-
121118
- name: git checkout
122119
uses: actions/checkout@v4
123120

0 commit comments

Comments
 (0)