From 05acec14633d17525c8300df3144b966d7b79474 Mon Sep 17 00:00:00 2001 From: libingxiang Date: Mon, 4 Aug 2025 17:17:37 +0800 Subject: [PATCH] ci --- .gitea/workflows/deploy.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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"