diff --git a/.gitea/workflows/server.yaml b/.gitea/workflows/server.yaml index 3f97185..3fbbff1 100644 --- a/.gitea/workflows/server.yaml +++ b/.gitea/workflows/server.yaml @@ -31,7 +31,8 @@ jobs: 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" - echo 'export PATH="$HOME/.nvm:$PATH"' >> ~/.bashrc + [ -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 - name: Install Node run: |