Skip to content

Commit f41629e

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 f41629e

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

.github/workflows/ci.yml

+19-18
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,24 @@ on: [push, pull_request]
44

55
jobs:
66
test:
7-
87
runs-on: ubuntu-latest
9-
108
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/[email protected]
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
9+
- uses: actions/checkout@v3
10+
11+
- name: Setup Node.js
12+
uses: actions/setup-node@v3
13+
with:
14+
node-version: '16.x'
15+
cache: 'pnpm'
16+
17+
- name: Install pnpm
18+
uses: pnpm/[email protected]
19+
with:
20+
version: 7
21+
run_install: false
22+
23+
- name: Install dependencies
24+
run: pnpm install
25+
26+
- name: Test
27+
run: pnpm test

0 commit comments

Comments
 (0)