From a63a0cdc3c650479a86fb82c26ae2fffadd763c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Fri, 6 Mar 2026 21:44:48 +0100 Subject: [PATCH] sq --- .gitea/workflows/gitea-actions.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/gitea-actions.yml b/.gitea/workflows/gitea-actions.yml index 05eb898..9bb6acd 100644 --- a/.gitea/workflows/gitea-actions.yml +++ b/.gitea/workflows/gitea-actions.yml @@ -12,15 +12,17 @@ jobs: steps: - name: Bootstrap Node 20 run: | - if command -v node >/dev/null 2>&1 && node --version | grep -q "^v20"; then - echo "Node 20 already installed: $(node --version)" - exit 0 + if command -v apt-get >/dev/null 2>&1; then + apt-get update -qq + apt-get install -y -qq curl git + curl -fsSL https://deb.nodesource.com/setup_20.x | bash - + apt-get install -y -qq nodejs + elif command -v apk >/dev/null 2>&1; then + apk add --no-cache nodejs npm git + else + echo "Unsupported package manager" && exit 1 fi - apt-get update -qq - apt-get install -y -qq curl - curl -fsSL https://deb.nodesource.com/setup_20.x | bash - - apt-get install -y -qq nodejs - node --version && npm --version + node --version && npm --version && git --version - name: Checkout run: |