Skip to content

Commit 37cc6f7

Browse files
committed
Use pnpm/action-setup
- Fixes missing pnpm executable CI error
1 parent 3a960c7 commit 37cc6f7

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,15 @@ jobs:
1212

1313
steps:
1414
- uses: actions/checkout@v2
15+
- name: Setup pnpm
16+
uses: pnpm/[email protected]
17+
with:
18+
version: 6
1519
- uses: actions/setup-node@v2
1620
with:
1721
node-version: 16
1822
cache: pnpm
1923
registry-url: https://registry.npmjs.org
20-
- name: Setup pnpm
21-
run: npm add -g pnpm@6
2224
- name: Install dependencies
2325
run: pnpm install
2426
- name: Check formatting

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,15 @@ jobs:
1313

1414
steps:
1515
- uses: actions/checkout@v2
16+
- name: Setup pnpm
17+
uses: pnpm/[email protected]
18+
with:
19+
version: 6
1620
- uses: actions/setup-node@v2
1721
with:
1822
node-version: 16
1923
cache: pnpm
2024
registry-url: https://registry.npmjs.org
21-
- name: Setup pnpm
22-
run: npm add -g pnpm@6
2325
- name: Install dependencies
2426
run: pnpm install
2527
- name: Check formatting

0 commit comments

Comments
 (0)