Skip to content

Commit c7601fe

Browse files
committed
must use package-lock
1 parent cf89e08 commit c7601fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tools/scripts/run_and_test_website.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ sleep 2
7373
pgrep -if "python main.py"
7474

7575
echo "Installing node modules"
76-
npm install
76+
npm ci
7777

7878
echo "Building website"
7979
npm run generate
@@ -87,7 +87,7 @@ npm run test
8787
# If being run in GitHub actions then generating the website should not
8888
# change any Git-tracked files. If it does then it suggests something's
8989
# wrong. Exit
90-
if [ "${GITHUB_ACTIONS}" ] && [ -n "$(git update-index --assume-unchanged package-lock.json && git status --porcelain)" ]; then
90+
if [ "${GITHUB_ACTIONS}" ] && [ -n "$(git status --porcelain)" ]; then
9191
echo "Generating the website produced a different file than is in the branch"
9292
git status
9393
exit 1

0 commit comments

Comments
 (0)