ci: Fix Node.js install logic with proper conditionals

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-11-23 20:48:43 -07:00
parent 35376b1a5a
commit f0570c2cb1

View File

@@ -17,7 +17,13 @@ jobs:
steps:
- name: Install Node.js
run: |
apk add --no-cache nodejs npm || apt-get update && apt-get install -y nodejs npm || yum install -y nodejs npm
if command -v apk > /dev/null; then
apk add --no-cache nodejs npm
elif command -v apt-get > /dev/null; then
apt-get update && apt-get install -y nodejs npm
elif command -v yum > /dev/null; then
yum install -y nodejs npm
fi
- name: Checkout
uses: actions/checkout@v4