Skip to content

Commit e311920

Browse files
committed
Fix CI build by cleaning dependencies to resolve Rollup module errors
1 parent 9ddd665 commit e311920

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,10 @@ jobs:
3636
node-version: 20
3737
- name: Clean up
3838
run: |
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"
39+
rm -rf node_modules
40+
rm -f package-lock.json
41+
npm cache clean --force
42+
shell: bash
4243
- run: npm install --include=optional
4344
- run: npm rebuild @rollup/rollup-linux-x64-gnu || true
4445
if: contains(matrix.os.name, 'linux')

0 commit comments

Comments
 (0)