Skip to content

Commit b9675b7

Browse files
authored
Merge pull request #2568 from headlamp-k8s/pin-npm-by-hash
headlamp-plugin: Use npm ci to pin deps
2 parents eb43d49 + 353e52e commit b9675b7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plugins/headlamp-plugin/install-dependencies.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ set -o xtrace
66
for i in * ; do
77
if [ -d "$i" ]; then
88
cd "$i"
9-
npm install
9+
npm ci
1010
cd ..
1111
fi
1212
done

plugins/headlamp-plugin/test-plugins-examples.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ for i in * ; do
1313
if [ -d "$i" ]; then
1414
cd "$i"
1515
# Test changes to headlamp-plugin in the PR/repo that released version might not have.
16-
npm install `ls -t ../../headlamp-plugin/kinvolk-headlamp-plugin-*.tgz | head -1`
16+
npm ci `ls -t ../../headlamp-plugin/kinvolk-headlamp-plugin-*.tgz | head -1`
1717
npm run lint
1818
npm run format
1919
npm run build

0 commit comments

Comments
 (0)