Skip to content

Commit 5265ff0

Browse files
committed
fixed ci to use pnpm
1 parent 58c4e25 commit 5265ff0

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,33 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v3
12+
- uses: pnpm/action-setup@v2
13+
with:
14+
version: 8
1215
- name: Setup Node
1316
uses: actions/setup-node@v3
1417
with:
1518
node-version: current
16-
cache: 'yarn'
17-
- run: yarn install --frozen-lockfile
18-
- run: yarn test
19+
cache: 'pnpm'
20+
- run: pnpm install --frozen-lockfile
21+
- run: pnpm test
1922
env:
2023
CI: true
2124
eslint:
2225
runs-on: ubuntu-latest
2326
steps:
2427
- uses: actions/checkout@v3
28+
- uses: pnpm/action-setup@v2
29+
with:
30+
version: 8
2531
- name: Setup Node
2632
uses: actions/setup-node@v3
2733
with:
2834
node-version: current
29-
cache: 'yarn'
30-
- run: yarn install --frozen-lockfile
31-
- run: yarn lint-fix
32-
- run: yarn prettier
35+
cache: 'pnpm'
36+
- run: pnpm install --frozen-lockfile
37+
- run: pnpm lint-fix
38+
- run: pnpm prettier
3339
- name: Auto commit fixed code
3440
id: auto-commit-action
3541
uses: stefanzweifel/git-auto-commit-action@v4

0 commit comments

Comments
 (0)