mirror of
https://github.com/github/codeql-action
synced 2026-05-25 15:00:36 +03:00
Run npm ci in actions
This commit is contained in:
+9
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user