Skip to content

Commit 3a9eeba

Browse files
committed
ci: use re-usable workflow for pnpm
1 parent 4e2e9ea commit 3a9eeba

File tree

1 file changed

+5
-29
lines changed

1 file changed

+5
-29
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,7 @@ jobs:
1313
uses: actions/checkout@v4
1414

1515
- name: Set up Node.js
16-
uses: actions/setup-node@v4
17-
with:
18-
node-version: 20
19-
20-
- uses: pnpm/action-setup@v4
21-
name: Install pnpm
22-
id: pnpm-install
23-
with:
24-
run_install: true
16+
uses: labd/gh-actions-typescript/pnpm-install@main
2517

2618
- name: Lint
2719
run: pnpm lint
@@ -39,17 +31,10 @@ jobs:
3931
- name: Checkout repo
4032
uses: actions/checkout@v4
4133

42-
- uses: pnpm/action-setup@v4
43-
name: Install pnpm
44-
id: pnpm-install
45-
with:
46-
run_install: true
47-
48-
- name: Use Node ${{ matrix.node }}
49-
uses: actions/setup-node@v4
34+
- name: Set up Node.js
35+
uses: labd/gh-actions-typescript/pnpm-install@main
5036
with:
5137
node-version: ${{ matrix.node }}
52-
cache: "pnpm"
5338

5439
- name: Build
5540
run: pnpm build
@@ -69,17 +54,8 @@ jobs:
6954
with:
7055
fetch-depth: 0
7156

72-
- uses: pnpm/action-setup@v4
73-
name: Install pnpm
74-
id: pnpm-install
75-
with:
76-
run_install: true
77-
78-
- name: Install node.js
79-
uses: actions/setup-node@v4
80-
with:
81-
node-version: 20
82-
cache: "pnpm"
57+
- name: Set up Node.js
58+
uses: labd/gh-actions-typescript/pnpm-install@main
8359

8460
- name: Create and publish versions
8561
uses: changesets/action@v1

0 commit comments

Comments
 (0)