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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user