Skip to content

Commit 136c472

Browse files
committed
fix: update GitHub Actions workflow for pnpm compatibility
- Upgrade actions/checkout to v3 - Upgrade actions/setup-node to v3 with pnpm cache - Update pnpm/action-setup to v2.4.0 to fix TypeError issue - Reorder steps for better compatibility - Remove unnecessary npm7 installation
1 parent aa34153 commit 136c472

File tree

1 file changed

+16
-17
lines changed

1 file changed

+16
-17
lines changed

.github/workflows/ci.yml

+16-17
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,22 @@ on: [push, pull_request]
44

55
jobs:
66
test:
7-
87
runs-on: ubuntu-latest
98

109
steps:
11-
- uses: actions/checkout@v2
12-
- name: Use Node.js
13-
uses: actions/setup-node@v2
14-
with:
15-
node-version: '16.x'
16-
- uses: pnpm/action-setup@v2.2.1
17-
name: Install pnpm
18-
id: pnpm-install
19-
with:
20-
version: 7
21-
- name: Install npm7
22-
run: npm i -g npm@7
23-
- name: Install dependencies
24-
run: pnpm install
25-
- name: Test
26-
run: pnpm test
10+
- uses: actions/checkout@v2
11+
- name: Use Node.js
12+
uses: actions/setup-node@v2
13+
with:
14+
node-version: '16.x'
15+
- uses: pnpm/action-setup@v4
16+
name: Install pnpm
17+
id: pnpm-install
18+
with:
19+
version: 7
20+
- name: Install npm7
21+
run: npm i -g npm@7
22+
- name: Install dependencies
23+
run: pnpm install
24+
- name: Test
25+
run: pnpm test

0 commit comments

Comments
 (0)