Skip to content

Commit 2e43098

Browse files
committed
fix gh actions
1 parent 095fc25 commit 2e43098

File tree

2 files changed

+34
-29
lines changed

2 files changed

+34
-29
lines changed

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

+25-21
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,25 @@ jobs:
99
runs-on: ubuntu-22.04
1010
strategy:
1111
matrix:
12-
node-version: [22]
13-
timeout-minutes: 5
14-
12+
node-version: [ 22 ]
13+
timeout-minutes: 10
1514
steps:
1615
- name: Checkout
1716
uses: actions/checkout@v4
1817

18+
- uses: pnpm/action-setup@v4
19+
name: Install pnpm
20+
with:
21+
version: 9
22+
1923
- name: Install Node.js ${{ matrix.node-version }}
2024
uses: actions/setup-node@v4
2125
with:
2226
node-version: ${{ matrix.node-version }}
2327
cache: 'pnpm'
2428

25-
- uses: pnpm/action-setup@v4
26-
name: Install pnpm
27-
with:
28-
version: 9
29-
run_install: true
29+
- name: Install dependencies
30+
run: pnpm install
3031

3132
- name: Lint code
3233
run: pnpm format && pnpm lint:fix
@@ -45,24 +46,25 @@ jobs:
4546
runs-on: ubuntu-22.04
4647
strategy:
4748
matrix:
48-
node-version: [22]
49-
timeout-minutes: 5
50-
49+
node-version: [ 22 ]
50+
timeout-minutes: 10
5151
steps:
5252
- name: Checkout
5353
uses: actions/checkout@v4
5454

55+
- uses: pnpm/action-setup@v4
56+
name: Install pnpm
57+
with:
58+
version: 9
59+
5560
- name: Install Node.js ${{ matrix.node-version }}
5661
uses: actions/setup-node@v4
5762
with:
5863
node-version: ${{ matrix.node-version }}
5964
cache: 'pnpm'
6065

61-
- uses: pnpm/action-setup@v4
62-
name: Install pnpm
63-
with:
64-
version: 9
65-
run_install: true
66+
- name: Install dependencies
67+
run: pnpm install
6668

6769
- name: Build
6870
run: pnpm run build
@@ -78,17 +80,19 @@ jobs:
7880
- name: Checkout
7981
uses: actions/checkout@v4
8082

83+
- uses: pnpm/action-setup@v4
84+
name: Install pnpm
85+
with:
86+
version: 9
87+
8188
- name: Install Node.js ${{ matrix.node-version }}
8289
uses: actions/setup-node@v4
8390
with:
8491
node-version: ${{ matrix.node-version }}
8592
cache: 'pnpm'
8693

87-
- uses: pnpm/action-setup@v4
88-
name: Install pnpm
89-
with:
90-
version: 9
91-
run_install: true
94+
- name: Install dependencies
95+
run: pnpm install
9296

9397
- name: Build
9498
run: pnpm run build

.github/workflows/changesets.yml

+9-8
Original file line numberDiff line numberDiff line change
@@ -20,27 +20,28 @@ jobs:
2020
runs-on: ubuntu-22.04
2121
strategy:
2222
matrix:
23-
node-version: [22]
24-
timeout-minutes: 5
25-
23+
node-version: [ 22 ]
24+
timeout-minutes: 10
2625
steps:
2726
- name: Checkout
2827
uses: actions/checkout@v4
2928
with:
3029
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
3130
fetch-depth: 0
3231

32+
- uses: pnpm/action-setup@v4
33+
name: Install pnpm
34+
with:
35+
version: 9
36+
3337
- name: Install Node.js ${{ matrix.node-version }}
3438
uses: actions/setup-node@v4
3539
with:
3640
node-version: ${{ matrix.node-version }}
3741
cache: 'pnpm'
3842

39-
- uses: pnpm/action-setup@v4
40-
name: Install pnpm
41-
with:
42-
version: 9
43-
run_install: true
43+
- name: Install dependencies
44+
run: pnpm install
4445

4546
- name: Create version pull request or publish to npm
4647
uses: changesets/action@v1

0 commit comments

Comments
 (0)