Merge pull request #1544 from github/aeisenberg/clean-cache
Clean the npm cache before running install
This commit is contained in:
commit
f3bd25eefa
1 changed files with 4 additions and 0 deletions
|
|
@ -10,6 +10,10 @@ fi
|
||||||
# When updating this, make sure to update the npm version in
|
# When updating this, make sure to update the npm version in
|
||||||
# `.github/workflows/update-dependencies.yml` too.
|
# `.github/workflows/update-dependencies.yml` too.
|
||||||
sudo npm install --force -g npm@9.2.0
|
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
|
# Reinstall modules and then clean to remove absolute paths
|
||||||
# Use 'npm ci' instead of 'npm install' as this is intended to be reproducible
|
# Use 'npm ci' instead of 'npm install' as this is intended to be reproducible
|
||||||
npm ci
|
npm ci
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue