更新 .gitea/workflows/youzi.yml
This commit is contained in:
parent
814ead1385
commit
a84502990b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user