Run npm ci in actions

This commit is contained in:
Michael B. Gale
2026-03-01 15:20:30 +00:00
parent f91cab1409
commit 8bfaf96434
+9 -1
View File
@@ -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