From 6511c2371779564ba5fd5be9008b255fdd297782 Mon Sep 17 00:00:00 2001 From: Christopher Willis-Ford <7019101+cwillisf@users.noreply.github.com> Date: Mon, 3 Apr 2023 19:19:05 -0700 Subject: [PATCH] ci: add '--prefer-offline' to npm ci --- .circleci/config.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4f6aaae..35f2510 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -41,6 +41,7 @@ jobs: - checkout - node/install-packages: include-branch-in-cache-key: false + override-ci-command: npm ci --loglevel info --prefer-offline - run: name: Test command: npm run test @@ -129,9 +130,6 @@ jobs: nvm --version nvm install 16.20.0 nvm use 16.20.0 - - run: - name: Increase NPM log level to avoid timeouts while installing packages - command: npm config set loglevel info - run: node --version && npm --version - checkout - node/install-packages: @@ -139,6 +137,7 @@ jobs: # make sure to use a path that works with Windows Node.js AND MSYS/MinGW bash cache-path: "C:/tmp/npm-cache" include-branch-in-cache-key: false + override-ci-command: npm ci --loglevel info --prefer-offline - run: name: Test command: npm run test