diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8e1de19..6b41666 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -28,11 +28,6 @@ jobs: with: path: "clone-files" - - name: 设置 node 环境 - uses: actions/setup-node@v3 - with: - node-version: "19.1.0" - - name: 设置 id_rsa run: | mkdir -p ~/.ssh/ @@ -55,6 +50,9 @@ jobs: ls -a - name: 启动 pm2 + uses: actions/setup-node@v3 + with: + node-version: "19.1.0" run: | ssh root@${{secrets.REMOTE_HOST}} " cd ${{secrets.REMOTE_SERVER_DIR}};