File tree Expand file tree Collapse file tree 1 file changed +4
-16
lines changed
Expand file tree Collapse file tree 1 file changed +4
-16
lines changed Original file line number Diff line number Diff line change @@ -12,25 +12,13 @@ jobs:
1212 # 获取源码
1313 - name : Checkout
1414 uses : actions/checkout@v2
15- # 查找yarn缓存
16- - name : Get yarn cache path
17- id : yarn-cache
18- run : echo "::set-output name=dir::$(yarn cache dir)"
19- # 更新缓存
20- - name : Cache Dependencies
21- uses : actions/cache@v1
22- with :
23- path : ${{ steps.yarn-cache.outputs.dir }}
24- key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
25- restore-keys : |
26- ${{ runner.os }}-yarn-
2715 # 安装依赖并打包
2816 - name : Install and build
2917 run : |
30- yarn global add pkg
31- yarn add -D @semantic-release/changelog @semantic-release/git
32- yarn install
33- yarn build
18+ npm add -g pnpm
19+ pnpm add -D @semantic-release/changelog @semantic-release/git
20+ pnpm install
21+ pnpm build
3422 # 压缩构建后的文件
3523 - name : Compress
3624 run : |
You can’t perform that action at this time.
0 commit comments