From 8bfaf96434cd904922ce98ede3c2102622ecb34f Mon Sep 17 00:00:00 2001 From: "Michael B. Gale" Date: Sun, 1 Mar 2026 15:20:30 +0000 Subject: [PATCH] Run `npm ci` in actions --- pr-checks/sync.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pr-checks/sync.sh b/pr-checks/sync.sh index 3ddbcd4c0..c05959449 100755 --- a/pr-checks/sync.sh +++ b/pr-checks/sync.sh @@ -3,5 +3,13 @@ set -e cd "$(dirname "$0")" -npm install --no-audit --no-fund +# Run `npm ci` in CI or `npm install` otherwise. +if [ "$GITHUB_ACTIONS" = "true" ]; then + echo "In Actions, running 'npm ci' for 'sync.ts'..." + npm ci +else + echo "Running 'npm install' for 'sync.ts'..." + npm install --no-audit --no-fund +fi + npx tsx sync.ts