From 87daa9b017abab17f7cabbe3b28b12b26c847ba4 Mon Sep 17 00:00:00 2001 From: Yousaf Nabi Date: Thu, 24 Oct 2024 20:48:16 +0100 Subject: [PATCH] chore: try npm install if npm ci fails --- script/ci/build-and-test.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/script/ci/build-and-test.sh b/script/ci/build-and-test.sh index 0b4ff6f..3c0fdb1 100755 --- a/script/ci/build-and-test.sh +++ b/script/ci/build-and-test.sh @@ -20,7 +20,10 @@ fi node --version npm --version -npm ci +# our lock file may be out of sync post npm release, as it has not been updated post release +# of the optional depedencies with the path to the npm packages. We should probably commit these +# back after releasing the package +npm ci || npm i # Update main package.json optional dependencies versions, with those created earlier make update_opt_deps # update lockfile post buildling updated opt deps