diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 8a44bea..e4884f9 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -24,9 +24,14 @@ jobs: - run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner." - run: echo "🖥️ The workflow is now ready to test your code on the runner." + # 设置环境和 Node.js # 设置环境和 Node.js - name: Setup environment - + run: | + export NVM_DIR="$HOME/.nvm" + [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" + unset CI + nvm use 23.5.0 - name: Compile code and build run: | export NVM_DIR="$HOME/.nvm"