From a0e145585c25ef2edb1b6bb200792a57904dd570 Mon Sep 17 00:00:00 2001 From: kongxiangyiren Date: Thu, 24 Oct 2024 07:51:22 +0000 Subject: [PATCH 1/6] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.gitea/workflows/youzi?= =?UTF-8?q?.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/youzi.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/youzi.yml b/.gitea/workflows/youzi.yml index e4fcb24..c4bc5dd 100644 --- a/.gitea/workflows/youzi.yml +++ b/.gitea/workflows/youzi.yml @@ -33,7 +33,7 @@ jobs: yarn install yarn build - name: Appleboy - uses: https://gitcode.net/weixin_44697517/scp-action@v0.1.4 + uses: gitea.com/drucker/scp-action@v0.1.7 with: host: ${{ secrets.USER_HOST }} # 服务器地址: xxx.xxx.xxx.xxx username: ${{ secrets.USER_NAME }} # 服务器名字 一般是root From e8a1f5a34e1e27bd20096f17340e487d3a21f9d0 Mon Sep 17 00:00:00 2001 From: kongxiangyiren Date: Thu, 24 Oct 2024 07:53:26 +0000 Subject: [PATCH 2/6] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.gitea/workflows/youzi?= =?UTF-8?q?.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/youzi.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/youzi.yml b/.gitea/workflows/youzi.yml index c4bc5dd..062ad09 100644 --- a/.gitea/workflows/youzi.yml +++ b/.gitea/workflows/youzi.yml @@ -33,7 +33,7 @@ jobs: yarn install yarn build - name: Appleboy - uses: gitea.com/drucker/scp-action@v0.1.7 + uses: https://gitea.com/drucker/scp-action@v0.1.7 with: host: ${{ secrets.USER_HOST }} # 服务器地址: xxx.xxx.xxx.xxx username: ${{ secrets.USER_NAME }} # 服务器名字 一般是root From 814ead13855575b062dcf709ed7e3f39806f16ff Mon Sep 17 00:00:00 2001 From: kongxiangyiren Date: Thu, 24 Oct 2024 07:57:26 +0000 Subject: [PATCH 3/6] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.gitea/workflows/youzi?= =?UTF-8?q?.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/youzi.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/youzi.yml b/.gitea/workflows/youzi.yml index 062ad09..8892c4f 100644 --- a/.gitea/workflows/youzi.yml +++ b/.gitea/workflows/youzi.yml @@ -33,7 +33,7 @@ jobs: yarn install yarn build - name: Appleboy - uses: https://gitea.com/drucker/scp-action@v0.1.7 + uses: https://gitee.com/liushuai05/scp-action@v0.1.7 with: host: ${{ secrets.USER_HOST }} # 服务器地址: xxx.xxx.xxx.xxx username: ${{ secrets.USER_NAME }} # 服务器名字 一般是root From a84502990b55d5ec86dbcfce354ee301b9db6c38 Mon Sep 17 00:00:00 2001 From: kongxiangyiren Date: Thu, 24 Oct 2024 07:59:26 +0000 Subject: [PATCH 4/6] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.gitea/workflows/youzi?= =?UTF-8?q?.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/youzi.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.gitea/workflows/youzi.yml b/.gitea/workflows/youzi.yml index 8892c4f..fca2e38 100644 --- a/.gitea/workflows/youzi.yml +++ b/.gitea/workflows/youzi.yml @@ -28,6 +28,15 @@ jobs: path: node_modules key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} + - name: 判断yarn是否安装,如果未安装则安装 + run: | + if ! command -v yarn &> /dev/null; then + echo "yarn 未安装,开始安装" + npm install -g yarn + else + echo "yarn 已安装" + fi + - name: Install and Build # 下载依赖 打包项目 run: | yarn install From f554b88973948da6f83970dc1ace1199e682788f Mon Sep 17 00:00:00 2001 From: kongxiangyiren Date: Thu, 24 Oct 2024 08:00:19 +0000 Subject: [PATCH 5/6] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.gitea/workflows/youzi?= =?UTF-8?q?.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/youzi.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/youzi.yml b/.gitea/workflows/youzi.yml index fca2e38..2a204af 100644 --- a/.gitea/workflows/youzi.yml +++ b/.gitea/workflows/youzi.yml @@ -32,7 +32,7 @@ jobs: run: | if ! command -v yarn &> /dev/null; then echo "yarn 未安装,开始安装" - npm install -g yarn + npm install -g yarn --registry=https://registry.npmmirror.com else echo "yarn 已安装" fi From 966bf7068f9bb60bbfa749ff02b478100514650b Mon Sep 17 00:00:00 2001 From: kongxiangyiren Date: Thu, 24 Oct 2024 08:02:30 +0000 Subject: [PATCH 6/6] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.gitea/workflows/youzi?= =?UTF-8?q?.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/youzi.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/youzi.yml b/.gitea/workflows/youzi.yml index 2a204af..3dd30ee 100644 --- a/.gitea/workflows/youzi.yml +++ b/.gitea/workflows/youzi.yml @@ -20,6 +20,7 @@ jobs: with: # gitea-tool-cache导出 node 具体版本 node-version: ${{ steps.tool-cache.outputs.node-version }} + registry-url: https://registry.npmmirror.com - name: 缓存 uses: https://gitea.cn/actions/cache@v4 @@ -32,7 +33,7 @@ jobs: run: | if ! command -v yarn &> /dev/null; then echo "yarn 未安装,开始安装" - npm install -g yarn --registry=https://registry.npmmirror.com + npm install -g yarn else echo "yarn 已安装" fi