Skip to content

Commit cff350f

Browse files
anandgupta42claude
andcommitted
fix: free disk space before npm publish to prevent ENOSPC
Build artifacts are ~4GB. GitHub Actions runners have ~14GB. Downloading + unpacking + npm pack fills the disk. Remove dotnet/android/ghc/boost (~10GB) before artifact download. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent d189794 commit cff350f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,11 @@ jobs:
116116
- name: Install dependencies
117117
run: bun install
118118

119+
- name: Free disk space for artifact download + npm publish
120+
run: |
121+
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc /usr/local/share/boost
122+
df -h /
123+
119124
- name: Download all build artifacts
120125
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
121126
with:

0 commit comments

Comments
 (0)