Skip to content

Commit 30853f2

Browse files
committed
ci: workflow variable updates
1 parent 221144b commit 30853f2

File tree

8 files changed

+19
-45
lines changed

8 files changed

+19
-45
lines changed

.github/actions/setup/action.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@ runs:
33
using: "composite"
44
steps:
55
- uses: actions/checkout@v3
6-
- uses: pnpm/action-setup@v2
7-
- name: Set up Node ${{ matrix.node-version }}
6+
- name: Set up pnpm
7+
uses: pnpm/[email protected]
8+
- name: Set up node@18
89
uses: actions/setup-node@v3
910
with:
1011
cache: 'pnpm'
11-
node-version: ${{ matrix.node-version }}
12+
node-version: 18
1213
- name: Cache pnpm
1314
uses: actions/cache@v3
1415
with:

.github/workflows/bench.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ jobs:
1010
install:
1111
name: Install
1212
runs-on: ubuntu-latest
13-
strategy:
14-
matrix:
15-
node-version: [18]
1613
steps:
1714
- uses: actions/checkout@v3
1815
- name: Setup
@@ -24,7 +21,7 @@ jobs:
2421
runs-on: ubuntu-latest
2522
strategy:
2623
matrix:
27-
node-version: [18]
24+
transport-mode: ['http', 'webSocket']
2825
steps:
2926
- uses: actions/checkout@v3
3027
- name: Setup

.github/workflows/main.yml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ jobs:
1313
install:
1414
name: Install
1515
runs-on: ubuntu-latest
16-
strategy:
17-
matrix:
18-
node-version: [18]
1916
steps:
2017
- uses: actions/checkout@v3
2118
- name: Setup
@@ -25,9 +22,6 @@ jobs:
2522
name: Lint
2623
needs: install
2724
runs-on: ubuntu-latest
28-
strategy:
29-
matrix:
30-
node-version: [18]
3125
steps:
3226
- uses: actions/checkout@v3
3327
- name: Setup
@@ -54,9 +48,6 @@ jobs:
5448
name: Build
5549
needs: lint
5650
runs-on: ubuntu-latest
57-
strategy:
58-
matrix:
59-
node-version: [18]
6051
steps:
6152
- uses: actions/checkout@v3
6253
- name: Setup
@@ -70,7 +61,6 @@ jobs:
7061
runs-on: ubuntu-latest
7162
strategy:
7263
matrix:
73-
node-version: [18]
7464
shard: [1, 2, 3]
7565
total-shards: [3]
7666
transport-mode: ['http', 'webSocket']
@@ -105,9 +95,6 @@ jobs:
10595
name: Test Types
10696
needs: lint
10797
runs-on: ubuntu-latest
108-
strategy:
109-
matrix:
110-
node-version: [18]
11198
steps:
11299
- uses: actions/checkout@v3
113100
- name: Setup
@@ -121,9 +108,6 @@ jobs:
121108
name: Benchmark
122109
needs: lint
123110
runs-on: ubuntu-latest
124-
strategy:
125-
matrix:
126-
node-version: [18]
127111
steps:
128112
- uses: actions/checkout@v3
129113
- name: Setup

.github/workflows/release-canary.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,17 @@ jobs:
1313
build_and_publish:
1414
name: Release (canary)
1515
runs-on: ubuntu-latest
16-
strategy:
17-
matrix:
18-
node-version: [18]
1916
steps:
2017
- uses: actions/checkout@v3
2118
with:
2219
fetch-depth: 0
23-
- uses: pnpm/action-setup@v2
24-
- name: Set up Node ${{ matrix.node-version }}
20+
- name: Set up pnpm
21+
uses: pnpm/[email protected]
22+
- name: Set up node@18
2523
uses: actions/setup-node@v3
2624
with:
2725
cache: 'pnpm'
28-
node-version: ${{ matrix.node-version }}
26+
node-version: 18
2927
registry-url: 'https://registry.npmjs.org'
3028
- name: Install Dependencies
3129
run: pnpm i --ignore-scripts

.github/workflows/release.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,20 @@ jobs:
99
release:
1010
name: Release
1111
runs-on: ubuntu-latest
12-
strategy:
13-
matrix:
14-
node-version: [18]
1512
steps:
1613
- uses: actions/checkout@v3
1714
with:
1815
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
1916
fetch-depth: 0
2017

21-
- uses: pnpm/action-setup@v2
22-
- name: Set up Node ${{ matrix.node-version }}
18+
- name: Set up pnpm
19+
uses: pnpm/[email protected]
20+
- name: Set up node@18
2321
uses: actions/setup-node@v3
2422
with:
2523
cache: 'pnpm'
26-
node-version: ${{ matrix.node-version }}
24+
node-version: 18
25+
registry-url: 'https://registry.npmjs.org'
2726
- name: Install Dependencies
2827
run: pnpm i --ignore-scripts
2928

.github/workflows/size.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ jobs:
66
build:
77
name: Compressed Size
88
runs-on: ubuntu-latest
9-
strategy:
10-
matrix:
11-
node-version: [18]
129
steps:
1310
- uses: actions/checkout@v3
1411
- name: Setup

.github/workflows/snapshot.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,20 @@ jobs:
66
release:
77
name: Publish Snapshot
88
runs-on: ubuntu-latest
9-
strategy:
10-
matrix:
11-
node-version: [18]
129
steps:
1310
- uses: actions/checkout@v3
1411
with:
1512
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
1613
fetch-depth: 0
1714
token: ${{ secrets.GITHUB_TOKEN }}
1815

19-
- uses: pnpm/action-setup@v2
20-
- name: Set up Node ${{ matrix.node-version }}
16+
- name: Set up pnpm
17+
uses: pnpm/[email protected]
18+
- name: Set up node@18
2119
uses: actions/setup-node@v3
2220
with:
2321
cache: 'pnpm'
24-
node-version: ${{ matrix.node-version }}
22+
node-version: 18
2523

2624
- name: Install Dependencies
2725
run: pnpm i --ignore-scripts

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"name": "viem",
33
"description": "TypeScript Interface for Ethereum",
44
"version": "0.3.3",
5-
"packageManager": "[email protected]",
65
"scripts": {
76
"anvil": "dotenv -- sh -c 'anvil --fork-url $VITE_ANVIL_FORK_URL --fork-block-number $VITE_ANVIL_BLOCK_NUMBER --block-time $VITE_ANVIL_BLOCK_TIME'",
87
"bench": "vitest bench --no-threads",
@@ -203,6 +202,7 @@
203202
"simple-git-hooks": {
204203
"pre-commit": "pnpm format && pnpm lint:fix"
205204
},
205+
"packageManager": "[email protected]",
206206
"pnpm": {
207207
"overrides": {
208208
"viem": "workspace:*"

0 commit comments

Comments
 (0)