Skip to content

Commit d8ae0bf

Browse files
committed
setup pnpm before setup node
1 parent 6a5fe30 commit d8ae0bf

1 file changed

Lines changed: 13 additions & 12 deletions

File tree

.github/workflows/publish.yml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ jobs:
1616
steps:
1717
- name: Checkout repository
1818
uses: actions/checkout@v4
19+
20+
- name: Setup pnpm
21+
uses: pnpm/action-setup@v4
22+
with:
23+
version: latest
24+
run_install: false
25+
1926
- name: Setup Node.js
2027
uses: actions/setup-node@v4
2128
with:
@@ -33,12 +40,6 @@ jobs:
3340
hash -r
3441
npm -v
3542
36-
- name: Setup pnpm
37-
uses: pnpm/action-setup@v4
38-
with:
39-
version: latest
40-
run_install: false
41-
4243
- name: Install dependencies
4344
run: pnpm install --frozen-lockfile
4445

@@ -64,6 +65,12 @@ jobs:
6465
- name: Checkout repository
6566
uses: actions/checkout@v4
6667

68+
- name: Setup pnpm
69+
uses: pnpm/action-setup@v4
70+
with:
71+
version: latest
72+
run_install: false
73+
6774
- name: Setup Node.js with npm registry
6875
uses: actions/setup-node@v4
6976
with:
@@ -82,12 +89,6 @@ jobs:
8289
hash -r
8390
npm -v
8491
85-
- name: Setup pnpm
86-
uses: pnpm/action-setup@v4
87-
with:
88-
version: latest
89-
run_install: false
90-
9192
- name: Install dependencies
9293
run: pnpm install --frozen-lockfile
9394

0 commit comments

Comments
 (0)