Skip to content

Commit 751c73b

Browse files
committed
chore(ci): use pnpm
1 parent a986758 commit 751c73b

File tree

1 file changed

+4
-16
lines changed

1 file changed

+4
-16
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff 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: |

0 commit comments

Comments
 (0)