diff --git a/.gitea/workflows/server.yaml b/.gitea/workflows/server.yaml index 2399f94..b1a9eb8 100644 --- a/.gitea/workflows/server.yaml +++ b/.gitea/workflows/server.yaml @@ -36,13 +36,8 @@ jobs: nvm install 18 nvm use 18 echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> ~/.bashrc - export PATH="$(which node):$PATH" - export PATH="$(which npm):$PATH" - export PATH="$(which nvm):$PATH" echo $(which node) - echo "::add-path::$(which nvm)" - echo "::add-path::$(which node)" - echo "::add-path::$(which npm)" + echo "::add-path::$(dirname $(which npm))" nvm --version echo "NVM_DIR=$HOME/.nvm" >> $GITHUB_ENV - name: Check Node.js version @@ -54,10 +49,6 @@ jobs: echo $GITHUB_ENV node -v npm -v - - name: Install Node - uses: actions/setup-node@v4 - with: - node-version: 18 - name: Checkout repository uses: https://github.com/actions/checkout@v3 - name: Build docs