Skip to content

Commit 25523cf

Browse files
committed
ci: fix pnpm setup order
1 parent b2191b5 commit 25523cf

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,19 @@ jobs:
1717
- name: Checkout
1818
uses: actions/checkout@v4
1919

20-
- name: Use Node.js
21-
uses: actions/setup-node@v4
22-
with:
23-
node-version: 20
24-
cache: pnpm
25-
registry-url: 'https://registry.npmjs.org'
26-
2720
- name: Setup pnpm
2821
uses: pnpm/action-setup@v4
2922
with:
3023
version: 9
3124
run_install: false
3225

26+
- name: Setup Node.js
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: 20
30+
cache: 'pnpm'
31+
registry-url: 'https://registry.npmjs.org'
32+
3333
- name: Install dependencies
3434
run: pnpm install --frozen-lockfile
3535

@@ -42,5 +42,4 @@ jobs:
4242
- name: Publish to npm
4343
env:
4444
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
45-
run: |
46-
pnpm publish --access public --no-git-checks
45+
run: pnpm publish --access public --no-git-checks

0 commit comments

Comments
 (0)