Skip to content

Commit 1ded395

Browse files
committed
Update github actions
1 parent 5aacf17 commit 1ded395

File tree

2 files changed

+33
-23
lines changed

2 files changed

+33
-23
lines changed

.github/workflows/build-and-test.yml

+23-17
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,25 @@ jobs:
77
lint:
88
name: Lint
99
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
node-version: [ 22 ]
1013
timeout-minutes: 5
1114

1215
steps:
1316
- name: Checkout
1417
uses: actions/checkout@v4
1518

16-
- name: Install Node.js
17-
uses: actions/setup-node@v3
19+
- name: Install Node.js ${{ matrix.node-version }}
20+
uses: actions/setup-node@v4
1821
with:
19-
node-version: 18.x
22+
node-version: ${{ matrix.node-version }}
23+
cache: 'pnpm'
2024

21-
- uses: pnpm/action-setup@v2
25+
- uses: pnpm/action-setup@v4
2226
name: Install pnpm
2327
with:
24-
version: 8
28+
version: 9
2529
run_install: true
2630

2731
- name: Lint code
@@ -42,18 +46,19 @@ jobs:
4246
timeout-minutes: 5
4347

4448
steps:
45-
- name: Clone repository
49+
- name: Checkout
4650
uses: actions/checkout@v4
4751

48-
- name: Install Node.js
49-
uses: actions/setup-node@v3
52+
- name: Install Node.js ${{ matrix.node-version }}
53+
uses: actions/setup-node@v4
5054
with:
51-
node-version: 18.x
55+
node-version: ${{ matrix.node-version }}
56+
cache: 'pnpm'
5257

53-
- uses: pnpm/action-setup@v2
58+
- uses: pnpm/action-setup@v4
5459
name: Install pnpm
5560
with:
56-
version: 8
61+
version: 9
5762
run_install: true
5863

5964
- name: Build
@@ -64,18 +69,19 @@ jobs:
6469
runs-on: ubuntu-latest
6570
timeout-minutes: 10
6671
steps:
67-
- name: Clone repository
72+
- name: Checkout
6873
uses: actions/checkout@v4
6974

70-
- name: Install Node.js
71-
uses: actions/setup-node@v3
75+
- name: Install Node.js ${{ matrix.node-version }}
76+
uses: actions/setup-node@v4
7277
with:
73-
node-version: 18.x
78+
node-version: ${{ matrix.node-version }}
79+
cache: 'pnpm'
7480

75-
- uses: pnpm/action-setup@v2
81+
- uses: pnpm/action-setup@v4
7682
name: Install pnpm
7783
with:
78-
version: 8
84+
version: 9
7985
run_install: true
8086

8187
- name: Build

.github/workflows/changesets.yml

+10-6
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,28 @@ jobs:
1818
needs: build-and-test
1919
permissions: write-all
2020
runs-on: ubuntu-latest
21+
strategy:
22+
matrix:
23+
node-version: [ 22 ]
2124
timeout-minutes: 5
2225

2326
steps:
24-
- name: Clone repository
27+
- name: Checkout
2528
uses: actions/checkout@v4
2629
with:
2730
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
2831
fetch-depth: 0
2932

30-
- name: Install Node.js
31-
uses: actions/setup-node@v3
33+
- name: Install Node.js ${{ matrix.node-version }}
34+
uses: actions/setup-node@v4
3235
with:
33-
node-version: 18.x
36+
node-version: ${{ matrix.node-version }}
37+
cache: 'pnpm'
3438

35-
- uses: pnpm/action-setup@v2
39+
- uses: pnpm/action-setup@v4
3640
name: Install pnpm
3741
with:
38-
version: 8
42+
version: 9
3943
run_install: true
4044

4145
- name: Create version pull request or publish to npm

0 commit comments

Comments
 (0)