ci: add '--prefer-offline' to npm ci

This commit is contained in:
Christopher Willis-Ford 2023-04-03 19:19:05 -07:00
parent a28c69eaa0
commit 6511c23717

View file

@ -41,6 +41,7 @@ jobs:
- checkout - checkout
- node/install-packages: - node/install-packages:
include-branch-in-cache-key: false include-branch-in-cache-key: false
override-ci-command: npm ci --loglevel info --prefer-offline
- run: - run:
name: Test name: Test
command: npm run test command: npm run test
@ -129,9 +130,6 @@ jobs:
nvm --version nvm --version
nvm install 16.20.0 nvm install 16.20.0
nvm use 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 - run: node --version && npm --version
- checkout - checkout
- node/install-packages: - node/install-packages:
@ -139,6 +137,7 @@ jobs:
# make sure to use a path that works with Windows Node.js AND MSYS/MinGW bash # make sure to use a path that works with Windows Node.js AND MSYS/MinGW bash
cache-path: "C:/tmp/npm-cache" cache-path: "C:/tmp/npm-cache"
include-branch-in-cache-key: false include-branch-in-cache-key: false
override-ci-command: npm ci --loglevel info --prefer-offline
- run: - run:
name: Test name: Test
command: npm run test command: npm run test