Skip to content

Commit 2a26a8f

Browse files
committed
Fix dependency cleanup commands for PowerShell compatibility in GitHub Actions
1 parent a2df3bd commit 2a26a8f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ jobs:
4444
cache-dependency-path: package-lock.json
4545
- name: Clean up
4646
run: |
47-
rm -rf node_modules package-lock.json
48-
npm cache clean --force
47+
Remove-Item -Recurse -Force node_modules, package-lock.json -ErrorAction SilentlyContinue; npm cache clean --force
4948
- name: Install node modules
5049
run: npm ci --no-audit --no-fund --progress=false
5150
- name: Presubmit check (e.g. lint, format)

0 commit comments

Comments
 (0)