Skip to content

Commit

Permalink
must use package-lock
Browse files Browse the repository at this point in the history
  • Loading branch information
max-ostapenko committed Mar 5, 2025
1 parent cf89e08 commit c7601fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tools/scripts/run_and_test_website.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit c7601fe

Please sign in to comment.