Skip to content

Commit f6a04b8

Browse files
sxzztmm
andauthored
chore: add packageManager field (#389)
* chore: add `packageManager` field to pin pnpm@7 * chore: upgrade pnpm 8 * ci: don't specify pnpm version * ci: workflow variable updates --------- Co-authored-by: Tom Meagher <[email protected]>
1 parent 5c07da4 commit f6a04b8

File tree

9 files changed

+1274
-1293
lines changed

9 files changed

+1274
-1293
lines changed

.github/actions/setup/action.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@ runs:
33
using: "composite"
44
steps:
55
- uses: actions/checkout@v3
6-
- uses: pnpm/[email protected]
7-
with:
8-
version: ${{ matrix.pnpm-version }}
9-
- name: Set up Node ${{ matrix.node-version }}
6+
- name: Set up pnpm
7+
uses: pnpm/[email protected]
8+
- name: Set up node@18
109
uses: actions/setup-node@v3
1110
with:
1211
cache: 'pnpm'
13-
node-version: ${{ matrix.node-version }}
12+
node-version: 18
1413
- name: Cache pnpm
1514
uses: actions/cache@v3
1615
with:

.github/workflows/bench.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ jobs:
1010
install:
1111
name: Install
1212
runs-on: ubuntu-latest
13-
strategy:
14-
matrix:
15-
node-version: [18]
16-
pnpm-version: [7]
1713
steps:
1814
- uses: actions/checkout@v3
1915
- name: Setup
@@ -25,8 +21,7 @@ jobs:
2521
runs-on: ubuntu-latest
2622
strategy:
2723
matrix:
28-
node-version: [18]
29-
pnpm-version: [7]
24+
transport-mode: ['http', 'webSocket']
3025
steps:
3126
- uses: actions/checkout@v3
3227
- name: Setup

.github/workflows/main.yml

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ jobs:
1313
install:
1414
name: Install
1515
runs-on: ubuntu-latest
16-
strategy:
17-
matrix:
18-
node-version: [18]
19-
pnpm-version: [7]
2016
steps:
2117
- uses: actions/checkout@v3
2218
- name: Setup
@@ -26,10 +22,6 @@ jobs:
2622
name: Lint
2723
needs: install
2824
runs-on: ubuntu-latest
29-
strategy:
30-
matrix:
31-
node-version: [18]
32-
pnpm-version: [7]
3325
steps:
3426
- uses: actions/checkout@v3
3527
- name: Setup
@@ -56,10 +48,6 @@ jobs:
5648
name: Build
5749
needs: lint
5850
runs-on: ubuntu-latest
59-
strategy:
60-
matrix:
61-
node-version: [18]
62-
pnpm-version: [7]
6351
steps:
6452
- uses: actions/checkout@v3
6553
- name: Setup
@@ -73,8 +61,6 @@ jobs:
7361
runs-on: ubuntu-latest
7462
strategy:
7563
matrix:
76-
node-version: [18]
77-
pnpm-version: [7]
7864
shard: [1, 2, 3]
7965
total-shards: [3]
8066
transport-mode: ['http', 'webSocket']
@@ -114,10 +100,6 @@ jobs:
114100
name: Test Types
115101
needs: lint
116102
runs-on: ubuntu-latest
117-
strategy:
118-
matrix:
119-
node-version: [18]
120-
pnpm-version: [7]
121103
steps:
122104
- uses: actions/checkout@v3
123105
- name: Setup
@@ -131,10 +113,6 @@ jobs:
131113
name: Benchmark
132114
needs: lint
133115
runs-on: ubuntu-latest
134-
strategy:
135-
matrix:
136-
node-version: [18]
137-
pnpm-version: [7]
138116
steps:
139117
- uses: actions/checkout@v3
140118
- name: Setup

.github/workflows/release-canary.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,17 @@ jobs:
1313
build_and_publish:
1414
name: Release (canary)
1515
runs-on: ubuntu-latest
16-
strategy:
17-
matrix:
18-
node-version: [18]
19-
pnpm-version: [7]
2016
steps:
2117
- uses: actions/checkout@v3
2218
with:
2319
fetch-depth: 0
24-
- uses: pnpm/[email protected]
25-
with:
26-
version: ${{ matrix.pnpm-version }}
27-
- name: Set up Node ${{ matrix.node-version }}
20+
- name: Set up pnpm
21+
uses: pnpm/[email protected]
22+
- name: Set up node@18
2823
uses: actions/setup-node@v3
2924
with:
3025
cache: 'pnpm'
31-
node-version: ${{ matrix.node-version }}
26+
node-version: 18
3227
registry-url: 'https://registry.npmjs.org'
3328
- name: Install Dependencies
3429
run: pnpm i --ignore-scripts

.github/workflows/release.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,20 @@ jobs:
99
release:
1010
name: Release
1111
runs-on: ubuntu-latest
12-
strategy:
13-
matrix:
14-
node-version: [18]
15-
pnpm-version: [7]
1612
steps:
1713
- uses: actions/checkout@v3
1814
with:
1915
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
2016
fetch-depth: 0
2117

22-
- uses: pnpm/[email protected]
23-
with:
24-
version: ${{ matrix.pnpm-version }}
25-
- name: Set up Node ${{ matrix.node-version }}
18+
- name: Set up pnpm
19+
uses: pnpm/[email protected]
20+
- name: Set up node@18
2621
uses: actions/setup-node@v3
2722
with:
2823
cache: 'pnpm'
29-
node-version: ${{ matrix.node-version }}
24+
node-version: 18
25+
registry-url: 'https://registry.npmjs.org'
3026
- name: Install Dependencies
3127
run: pnpm i --ignore-scripts
3228

.github/workflows/size.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,10 @@ jobs:
66
build:
77
name: Compressed Size
88
runs-on: ubuntu-latest
9-
strategy:
10-
matrix:
11-
node-version: [18]
12-
pnpm-version: [7]
139
steps:
1410
- uses: actions/checkout@v3
1511
- name: Setup
1612
uses: ./.github/actions/setup
1713
- uses: preactjs/compressed-size-action@v2
1814
with:
19-
repo-token: "${{ secrets.GITHUB_TOKEN }}"
15+
repo-token: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/snapshot.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,20 @@ jobs:
66
release:
77
name: Publish Snapshot
88
runs-on: ubuntu-latest
9-
strategy:
10-
matrix:
11-
node-version: [18]
12-
pnpm-version: [7]
139
steps:
1410
- uses: actions/checkout@v3
1511
with:
1612
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
1713
fetch-depth: 0
1814
token: ${{ secrets.GITHUB_TOKEN }}
1915

20-
- uses: pnpm/[email protected]
21-
with:
22-
version: ${{ matrix.pnpm-version }}
23-
- name: Set up Node ${{ matrix.node-version }}
16+
- name: Set up pnpm
17+
uses: pnpm/[email protected]
18+
- name: Set up node@18
2419
uses: actions/setup-node@v3
2520
with:
2621
cache: 'pnpm'
27-
node-version: ${{ matrix.node-version }}
22+
node-version: 18
2823

2924
- name: Install Dependencies
3025
run: pnpm i --ignore-scripts

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@
202202
"simple-git-hooks": {
203203
"pre-commit": "pnpm format && pnpm lint:fix"
204204
},
205+
"packageManager": "[email protected]",
205206
"pnpm": {
206207
"overrides": {
207208
"viem": "workspace:*"
@@ -215,4 +216,4 @@
215216
]
216217
}
217218
}
218-
}
219+
}

0 commit comments

Comments
 (0)