ci: portable node install (apk/apt)
CI / build (push) Failing after 2s

This commit is contained in:
2026-08-25 20:03:42 +00:00
parent 40f1dbbf99
commit d06917144a
+8 -1
View File
@@ -10,7 +10,14 @@ jobs:
runs-on: amd64 runs-on: amd64
steps: steps:
- name: Install node - name: Install node
run: apt-get update && apt-get install -y nodejs npm || true run: |
if command -v apk >/dev/null 2>&1; then
apk add --no-cache nodejs npm
elif command -v apt-get >/dev/null 2>&1; then
apt-get update && apt-get install -y nodejs npm
else
echo "No package manager found, assuming node present"
fi
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Install Rust - name: Install Rust
uses: dtolnay/rust-toolchain@stable uses: dtolnay/rust-toolchain@stable