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: |