File tree Expand file tree Collapse file tree 5 files changed +8
-280
lines changed Expand file tree Collapse file tree 5 files changed +8
-280
lines changed Original file line number Diff line number Diff line change @@ -3,4 +3,3 @@ node_modules
33coverage
44bench /.results
55types /generated.d.ts
6- /package-lock.json.md5
Original file line number Diff line number Diff line change @@ -16,15 +16,16 @@ cache:
1616 directories :
1717 - $HOME/.npm
1818before_install :
19- - npm install --global npm@5.6 .0
19+ - npm install --global npm@5.8 .0
2020 - npm --version
21- - md5sum package-lock.json > package-lock.json.md5
2221install : |
2322 if [[ ${FRESH_DEPS} == "true" ]]; then
2423 npm install --no-shrinkwrap --prefer-online;
2524 else
26- npm install --prefer-offline;
27- if ! md5sum --quiet -c package-lock.json.md5; then
25+ npm ci;
26+ checksum=$(md5sum package-lock.json);
27+ npm install --package-lock-only;
28+ if ! echo ${checksum} | md5sum --quiet -c -; then
2829 echo "package-lock.json was modified unexpectedly. Please rebuild it using npm@$(npm -v) and commit the changes.";
2930 exit 1;
3031 fi
Original file line number Diff line number Diff line change @@ -23,11 +23,11 @@ matrix:
2323 nodejs_version : 6
2424install :
2525 - ps : Install-Product node $env:nodejs_version
26- - npm install --global npm@5.6 .0
26+ - npm install --global npm@5.8 .0
2727 - npm --version
2828 - git config core.symlinks true
2929 - git reset --hard
3030 - if %configuration% == FreshDeps (npm install --no-shrinkwrap --prefer-online)
31- - if %configuration% == LockedDeps (npm install --prefer-offline )
31+ - if %configuration% == LockedDeps (npm ci )
3232test_script :
3333 - npm run test-win
You can’t perform that action at this time.
0 commit comments