diff --git a/.gitea/workflows/server.yaml b/.gitea/workflows/server.yaml index db0db3c..fe45f72 100644 --- a/.gitea/workflows/server.yaml +++ b/.gitea/workflows/server.yaml @@ -26,6 +26,21 @@ jobs: runs-on: ubuntu-latest container: registry.jetbrains.team/p/writerside/builder/writerside-builder:${{env.DOCKER_VERSION}} steps: + - name: Install basic dependencies + run: | + wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash + echo "::add-path::$HOME/.nvm" + export PATH="$HOME/.nvm:$PATH" + export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" + [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" + echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> ~/.bashrc + echo "$HOME/.nvm" >> $GITHUB_PATH + nvm --version + - name: Check Node.js version + run: | + nvm --version + node -v + npm -v - name: Install Node uses: actions/setup-node@v4 with: