From a84502990b55d5ec86dbcfce354ee301b9db6c38 Mon Sep 17 00:00:00 2001 From: kongxiangyiren Date: Thu, 24 Oct 2024 07:59:26 +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 | 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