From d06917144a29eb15ee604fa2a094c59badb79920 Mon Sep 17 00:00:00 2001 From: Marvin Date: Tue, 25 Aug 2026 20:03:42 +0000 Subject: [PATCH] ci: portable node install (apk/apt) --- .gitea/workflows/ci.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 88973fe..e750815 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -10,7 +10,14 @@ jobs: runs-on: amd64 steps: - 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 - name: Install Rust uses: dtolnay/rust-toolchain@stable