更新 .gitea/workflows/youzi.yml
This commit is contained in:
parent
1dd6594b37
commit
473f1340da
@ -9,11 +9,20 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: https://gitea.cn/actions/checkout@v3
|
uses: https://gitea.cn/actions/checkout@v4
|
||||||
|
|
||||||
|
- id: tool-cache
|
||||||
|
uses: https://gitea.com/kongxiangyiren/gitea-tool-cache@v5
|
||||||
|
with:
|
||||||
|
# 只有node支持版本号别名
|
||||||
|
node-version: 18
|
||||||
|
- uses: https://gitea.cn/actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
# gitea-tool-cache导出 node 具体版本
|
||||||
|
node-version: ${{ steps.tool-cache.outputs.node-version }}
|
||||||
|
|
||||||
- name: 缓存
|
- name: 缓存
|
||||||
uses: https://gitea.cn/actions/cache@v3
|
uses: https://gitea.cn/actions/cache@v4
|
||||||
id: cache
|
id: cache
|
||||||
with:
|
with:
|
||||||
path: node_modules
|
path: node_modules
|
||||||
@ -21,7 +30,6 @@ jobs:
|
|||||||
|
|
||||||
- name: Install and Build # 下载依赖 打包项目
|
- name: Install and Build # 下载依赖 打包项目
|
||||||
run: |
|
run: |
|
||||||
corepack enable
|
|
||||||
yarn install
|
yarn install
|
||||||
yarn build
|
yarn build
|
||||||
- name: Appleboy
|
- name: Appleboy
|
||||||
|
Loading…
Reference in New Issue
Block a user