We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a986758 commit 751c73bCopy full SHA for 751c73b
1 file changed
.github/workflows/release.yml
@@ -12,25 +12,13 @@ jobs:
12
# 获取源码
13
- name: Checkout
14
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-
27
# 安装依赖并打包
28
- name: Install and build
29
run: |
30
- yarn global add pkg
31
- yarn add -D @semantic-release/changelog @semantic-release/git
32
- yarn install
33
- yarn build
+ npm add -g pnpm
+ pnpm add -D @semantic-release/changelog @semantic-release/git
+ pnpm install
+ pnpm build
34
# 压缩构建后的文件
35
- name: Compress
36
0 commit comments