Skip to content

Commit 073bf7d

Browse files
author
huzijie.sea
committed
chore: update pnpm setup in CI workflow
- Replace pnpm/action-setup with corepack commands - Enable corepack and prepare pnpm@8 - Remove trailing newline in env section
1 parent 72526f1 commit 073bf7d

1 file changed

Lines changed: 16 additions & 13 deletions

File tree

.github/workflows/ci.yml

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,11 @@ jobs:
2525
node-version: ${{ matrix.node-version }}
2626
cache: 'pnpm'
2727

28-
- name: Setup pnpm
29-
uses: pnpm/action-setup@v4
30-
with:
31-
version: 8
28+
- name: Enable corepack
29+
run: corepack enable
30+
31+
- name: Install pnpm
32+
run: corepack prepare pnpm@8 --activate
3233

3334
- name: Install dependencies
3435
run: pnpm install
@@ -59,10 +60,11 @@ jobs:
5960
node-version: '20.x'
6061
cache: 'pnpm'
6162

62-
- name: Setup pnpm
63-
uses: pnpm/action-setup@v4
64-
with:
65-
version: 8
63+
- name: Enable corepack
64+
run: corepack enable
65+
66+
- name: Install pnpm
67+
run: corepack prepare pnpm@8 --activate
6668

6769
- name: Install dependencies
6870
run: pnpm install
@@ -89,10 +91,11 @@ jobs:
8991
node-version: ${{ matrix.node-version }}
9092
cache: 'pnpm'
9193

92-
- name: Setup pnpm
93-
uses: pnpm/action-setup@v4
94-
with:
95-
version: 8
94+
- name: Enable corepack
95+
run: corepack enable
96+
97+
- name: Install pnpm
98+
run: corepack prepare pnpm@8 --activate
9699

97100
- name: Install dependencies
98101
run: pnpm install
@@ -105,4 +108,4 @@ jobs:
105108

106109
env:
107110
CI: true
108-
NODE_ENV: test
111+
NODE_ENV: test

0 commit comments

Comments
 (0)