Run npm ci if lock or shrinkwrap file found
@@ -100,9 +100,13 @@ if [ -e package.json ]; then
if [ ! -z "$NPM_AUTH_TOKEN" ]; then
echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > ~/.npmrc
fi
+ if [ -f package-lock.json ] || [ -f npm-shrinkwrap.json]; then
+ npm ci
+ else
npm install
fi
fi
+fi
# If the user is running the Python SDK, we will need to install their requirements as well.
if [ -e requirements.txt ]; then
