Skip to content

Commit

Permalink
Clean the npm cache before running install
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Eisenberg committed Feb 17, 2023
1 parent e00cd12 commit 41f1810
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/script/check-node-modules.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ fi
# When updating this, make sure to update the npm version in
# `.github/workflows/update-dependencies.yml` too.
sudo npm install --force -g npm@9.2.0

# clean the npm cache to ensure we don't have any files owned by root
sudo npm cache clean --force

# Reinstall modules and then clean to remove absolute paths
# Use 'npm ci' instead of 'npm install' as this is intended to be reproducible
npm ci
Expand Down

0 comments on commit 41f1810

Please sign in to comment.