From 966bf7068f9bb60bbfa749ff02b478100514650b Mon Sep 17 00:00:00 2001 From: kongxiangyiren Date: Thu, 24 Oct 2024 08:02:30 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.gitea/workflows/youzi.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