mirror of
https://github.com/keymanapp/keyman.git
synced 2026-10-07 14:37:29 +00:00
fix(common): only retry the npm ci call itself
This commit is contained in:
parent
e382dddb5b
commit
6251faa23d
1 changed files with 4 additions and 6 deletions
|
|
@ -228,10 +228,6 @@ _try_multiple_times ( ) {
|
|||
# build invocation
|
||||
#
|
||||
verify_npm_setup() {
|
||||
try_multiple_times _verify_npm_setup
|
||||
}
|
||||
|
||||
_verify_npm_setup() {
|
||||
# We'll piggy-back on the builder module dependency build state to determine
|
||||
# if npm ci has been called in the current script invocation. Adding the
|
||||
# prefix /external/ to module name in order to differentiate between this and
|
||||
|
|
@ -249,6 +245,8 @@ _verify_npm_setup() {
|
|||
builder_die "Build environment setup error detected! Please ensure Node.js is installed!"
|
||||
|
||||
pushd "$KEYMAN_ROOT" > /dev/null
|
||||
npm ci
|
||||
|
||||
try_multiple_times npm ci
|
||||
|
||||
popd > /dev/null
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue