Skip to content

Commit

Permalink
npm ci. Koenkk#2918
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Feb 13, 2020
1 parent 87faaa1 commit eac15a7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion azure-pipelines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ steps:
inputs:
versionSpec: '10.x'
displayName: 'Install Node.js'
- bash: npm install
- bash: npm ci
displayName: 'Install dependencies'

# Verify
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ FROM base as dependencies
COPY npm-shrinkwrap.json .

RUN apk add --no-cache --virtual .buildtools make gcc g++ python linux-headers git && \
npm install --production && \
npm ci --production && \
apk del .buildtools

# Release
Expand Down
4 changes: 2 additions & 2 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ chown -R pi:pi /opt/zigbee2mqtt

echo "Running install. This might take a while and can produce som expected errors"
cd /opt/zigbee2mqtt || exit
su pi -c "npm install"
su pi -c "npm ci"

echo "Creating service file zigbee2mqtt.service"
service_path="/etc/systemd/system/zigbee2mqtt.service"
Expand Down Expand Up @@ -70,4 +70,4 @@ fi
return 0
}

[[ "$_" == "$0" ]] && zigbee2mqtt-install-package
[[ "$_" == "$0" ]] && zigbee2mqtt-install-package
3 changes: 1 addition & 2 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ git checkout HEAD -- npm-shrinkwrap.json
git pull

echo "Installing dependencies..."
rm -rf node_modules
npm install
npm ci

echo "Restore configuration..."
cp -R data-backup/* data
Expand Down

0 comments on commit eac15a7

Please sign in to comment.