From 53b3ee43013df45aac1cccc8a5449989c0b20680 Mon Sep 17 00:00:00 2001 From: unkn0wn Date: Wed, 24 Jun 2026 08:57:03 +0200 Subject: [PATCH] fix: update deploy workflow to install Node.js requirements before checkout --- .gitea/workflows/deploy.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 43f4a88..703e94c 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -13,15 +13,17 @@ jobs: runs-on: host steps: - - name: Checkout Code + - name: Install Node.js requirements for Actions run: | - if [ -d ".git" ]; then - git fetch --depth=2 - git reset --hard FETCH_HEAD - else - git clone --depth=2 https://git.novaprojects.dev/unkn0wn/nova-design-system.git . + if ! command -v node &> /dev/null; then + apk add --no-cache nodejs npm fi + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 2 + - name: Install dependencies if: steps.version_check.outputs.changed == 'true' run: npm ci --legacy-peer-deps