Skip to content

Commit c26dfe6

Browse files
committed
fix: remove npm cache cleaning to preserve native binaries
- Remove npm cache clean --force from workflow - Cache cleaning can break optional native dependencies - npm ci already provides clean dependency state - Fixes rollup darwin-arm64 and other native binary issues
1 parent 84699c5 commit c26dfe6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ jobs:
3636
node-version: 20
3737
- name: Clean up
3838
run: |
39-
# Skip node_modules removal since npm ci provides clean state
40-
# and removing it breaks native binaries needed for build
41-
npm cache clean --force || true
39+
# Skip all cleanup since npm ci provides clean state
40+
# and cache cleaning can break native binaries
41+
echo "Clean state provided by npm ci"
4242
- run: npm ci
4343
# - name: add macos cert
4444
# if: contains(matrix.os.name, 'macos') && secrets.MACOS_CERT_P12

0 commit comments

Comments
 (0)