diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3e72ca8..f035bd5 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -28,20 +28,6 @@ jobs: with: path: "clone-files" - - name: 设置 node 环境 - uses: actions/setup-node@v3 - with: - node-version: "19.1.0" - - - name: Install pnpm - run: npm install -g pnpm - - - name: 安装依赖 - run: pnpm install - - - name: 编译打包 - run: pnpm run build - - name: 设置 id_rsa run: | mkdir -p ~/.ssh/ @@ -68,6 +54,10 @@ jobs: ssh root@${{secrets.REMOTE_HOST}} " cd ${{secrets.REMOTE_SERVER_DIR}}; ls -a; + nvm use 19.1.0 + npm install -g pnpm + pnpm install + pnpm run build " - name: 删除 id_rsa