mirror of
https://github.com/scratchfoundation/scratch-desktop.git
synced 2024-12-23 06:02:30 -05:00
ci: add '--prefer-offline' to npm ci
This commit is contained in:
parent
a28c69eaa0
commit
6511c23717
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue