From c7601feaab4a9fdb289ac2b9d63df9d359ebd9be Mon Sep 17 00:00:00 2001 From: Max Ostapenko <1611259+max-ostapenko@users.noreply.github.com> Date: Wed, 5 Mar 2025 23:59:57 +0100 Subject: [PATCH] must use package-lock --- src/tools/scripts/run_and_test_website.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tools/scripts/run_and_test_website.sh b/src/tools/scripts/run_and_test_website.sh index 3821714f20f..34e79b0a938 100755 --- a/src/tools/scripts/run_and_test_website.sh +++ b/src/tools/scripts/run_and_test_website.sh @@ -73,7 +73,7 @@ sleep 2 pgrep -if "python main.py" echo "Installing node modules" -npm install +npm ci echo "Building website" npm run generate @@ -87,7 +87,7 @@ npm run test # If being run in GitHub actions then generating the website should not # change any Git-tracked files. If it does then it suggests something's # wrong. Exit -if [ "${GITHUB_ACTIONS}" ] && [ -n "$(git update-index --assume-unchanged package-lock.json && git status --porcelain)" ]; then +if [ "${GITHUB_ACTIONS}" ] && [ -n "$(git status --porcelain)" ]; then echo "Generating the website produced a different file than is in the branch" git status exit 1