Skip to content

Commit

Permalink
chore: try npm install if npm ci fails
Browse files Browse the repository at this point in the history
  • Loading branch information
YOU54F committed Oct 24, 2024
1 parent d4d6b33 commit 87daa9b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion script/ci/build-and-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 87daa9b

Please sign in to comment.