Skip to content

Commit cc5437e

Browse files
committed
ci: replace calls to setup node & pnpm with the shared setup-env action
1 parent 692bc97 commit cc5437e

File tree

2 files changed

+5
-27
lines changed

2 files changed

+5
-27
lines changed

.github/workflows/v-next-changesets-release.yml

+3-15
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,9 @@ jobs:
1515
uses: actions/checkout@v4
1616
with:
1717
fetch-depth: 0
18-
- uses: pnpm/action-setup@v4
19-
with:
20-
version: 9
21-
- uses: actions/setup-node@v4
18+
- uses: ./.github/actions/setup-env
2219
with:
2320
node-version: 22
24-
cache: "pnpm"
2521
- name: Install
2622
run: pnpm install --no-frozen-lockfile
2723
- name: Changeset Check
@@ -47,13 +43,9 @@ jobs:
4743
uses: actions/checkout@v4
4844
with:
4945
fetch-depth: 0
50-
- uses: pnpm/action-setup@v4
51-
with:
52-
version: 9
53-
- uses: actions/setup-node@v4
46+
- uses: ./.github/actions/setup-env
5447
with:
5548
node-version: 22
56-
cache: "pnpm"
5749
- name: Install
5850
run: pnpm install --no-frozen-lockfile
5951
- name: Run full check (build, lint and test)
@@ -71,13 +63,9 @@ jobs:
7163
uses: actions/checkout@v4
7264
with:
7365
fetch-depth: 0
74-
- uses: pnpm/action-setup@v4
75-
with:
76-
version: 9
77-
- uses: actions/setup-node@v4
66+
- uses: ./.github/actions/setup-env
7867
with:
7968
node-version: 22
80-
cache: "pnpm"
8169
- name: Install
8270
run: pnpm install --no-frozen-lockfile
8371
- name: Apply and commit changesets

.github/workflows/v-next-ci.yml

+2-12
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,9 @@ jobs:
6565

6666
steps:
6767
- uses: actions/checkout@v4
68-
- name: Install pnpm
69-
uses: pnpm/action-setup@v3
70-
with:
71-
version: 9
72-
- uses: actions/setup-node@v4
68+
- uses: ./.github/actions/setup-env
7369
with:
7470
node-version: 22
75-
cache: "pnpm"
7671
- name: Install dependencies
7772
run: pnpm install --frozen-lockfile --prefer-offline
7873
- name: Build
@@ -98,14 +93,9 @@ jobs:
9893

9994
steps:
10095
- uses: actions/checkout@v4
101-
- name: Install pnpm
102-
uses: pnpm/action-setup@v3
103-
with:
104-
version: 9
105-
- uses: actions/setup-node@v4
96+
- uses: ./.github/actions/setup-env
10697
with:
10798
node-version: ${{ matrix.node }}
108-
cache: "pnpm"
10999
- name: Install dependencies
110100
run: pnpm install --frozen-lockfile --prefer-offline
111101
- name: Build

0 commit comments

Comments
 (0)