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