Skip to content

Commit

Permalink
Use npm ci to install node modules
Browse files Browse the repository at this point in the history
We also stop caching node_modules
because `npm ci` always starts from nothing
and will delete it if it is present.
  • Loading branch information
MHeasell committed May 24, 2019
1 parent 5d1d60a commit 411b672
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ addons:

cache:
directories:
- launcher/node_modules
- libs/_protobuf-install

env:
Expand All @@ -39,6 +38,6 @@ before_install:

install:
- nvm install 10
- cd launcher && npm install && cd ..
- cd launcher && npm ci && cd ..

script: ./travis.bash
2 changes: 1 addition & 1 deletion appveyor.bat
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ echo node version || goto :error
CALL node --version || goto :error
echo npm version || goto :error
CALL npm --version || goto :error
CALL npm install || goto :error
CALL npm ci || goto :error
CALL npm run package || goto :error
cd .. || goto :error

Expand Down
1 change: 0 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,4 @@ matrix:
fast_finish: true

cache:
- launcher\node_modules
- libs\_protobuf-install

0 comments on commit 411b672

Please sign in to comment.