From 9ab71891cf3ba7a4420bdacce65849a2fa8af7e9 Mon Sep 17 00:00:00 2001 From: Timothy Schenk Date: Wed, 15 Nov 2023 15:31:49 +0100 Subject: [PATCH] ci: let's use nvm to install nodejs 18 instead of 10 --- .gitea/workflows/server.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/server.yaml b/.gitea/workflows/server.yaml index 62b0fcc..f14fe0a 100644 --- a/.gitea/workflows/server.yaml +++ b/.gitea/workflows/server.yaml @@ -28,7 +28,10 @@ jobs: steps: - name: Install basic dependencies run: | - apt-get update && apt-get install -y nodejs npm zip unzip wget curl ssh jq apt-transport-https + wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash + export NVM_DIR="$HOME/.nvm" + [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" + nvm install 18 - name: Checkout repository uses: https://github.com/actions/checkout@v3 - name: Build docs