From f0570c2cb1b1835b182cff651684f0920a9e7db3 Mon Sep 17 00:00:00 2001 From: Phil Skentelbery Date: Sun, 23 Nov 2025 20:48:43 -0700 Subject: [PATCH] ci: Fix Node.js install logic with proper conditionals MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .gitea/workflows/build-container.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build-container.yml b/.gitea/workflows/build-container.yml index 3366c10..8261140 100644 --- a/.gitea/workflows/build-container.yml +++ b/.gitea/workflows/build-container.yml @@ -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