Skip to content

Commit f3bd25e

Browse files
authored
Merge pull request #1544 from github/aeisenberg/clean-cache
Clean the npm cache before running install
2 parents e00cd12 + 41f1810 commit f3bd25e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/script/check-node-modules.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ fi
1010
# When updating this, make sure to update the npm version in
1111
# `.github/workflows/update-dependencies.yml` too.
1212
sudo npm install --force -g [email protected]
13+
14+
# clean the npm cache to ensure we don't have any files owned by root
15+
sudo npm cache clean --force
16+
1317
# Reinstall modules and then clean to remove absolute paths
1418
# Use 'npm ci' instead of 'npm install' as this is intended to be reproducible
1519
npm ci

0 commit comments

Comments
 (0)