Skip to content

Commit 4b92a5e

Browse files
authored
chore: upgrade to use node 20 (#1500)
* chore: upgrade node 20 * chore: upgrade pnpm
1 parent 4fa0ace commit 4b92a5e

File tree

6 files changed

+16
-11
lines changed

6 files changed

+16
-11
lines changed

.changeset/fluffy-rockets-tickle.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@graphprotocol/graph-cli': minor
3+
---
4+
5+
upgrade to Node 20

.github/workflows/ci.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- uses: the-guild-org/shared-config/setup@main
1919
name: Setup Env
2020
with:
21-
nodeVersion: 18
21+
nodeVersion: 20
2222
packageManager: pnpm
2323

2424
- name: Lint
@@ -31,16 +31,15 @@ jobs:
3131
strategy:
3232
fail-fast: false
3333
matrix:
34-
# For some reason tests take forever on node 14 so will re-visit in future when we decide what versions to test on
35-
node-version: [16, 18, 20]
34+
node-version: [18, 20, 21]
3635
steps:
3736
- name: Checkout Repository
3837
uses: actions/checkout@v3
3938

4039
- uses: the-guild-org/shared-config/setup@main
4140
name: Setup Env
4241
with:
43-
nodeVersion: 18
42+
nodeVersion: 20
4443
packageManager: pnpm
4544

4645
- name: Setup git user information
@@ -69,7 +68,7 @@ jobs:
6968
- uses: the-guild-org/shared-config/setup@main
7069
name: Setup Env
7170
with:
72-
nodeVersion: 18
71+
nodeVersion: 20
7372
packageManager: pnpm
7473

7574
- name: Build Packages
@@ -96,7 +95,7 @@ jobs:
9695
- uses: the-guild-org/shared-config/setup@main
9796
name: Setup Env
9897
with:
99-
nodeVersion: 18
98+
nodeVersion: 20
10099
packageManager: pnpm
101100

102101
- name: Build Packages

.github/workflows/pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
with:
2020
npmTag: alpha
2121
buildScript: build
22-
nodeVersion: 16
22+
nodeVersion: 20
2323
packageManager: pnpm
2424
secrets:
2525
githubToken: ${{ secrets.GITHUB_TOKEN }}
@@ -31,7 +31,7 @@ jobs:
3131
with:
3232
npmTag: rc
3333
buildScript: build
34-
nodeVersion: 16
34+
nodeVersion: 20
3535
packageManager: pnpm
3636
restoreDeletedChangesets: true
3737
secrets:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Setup environment
2323
uses: the-guild-org/shared-config/setup@main
2424
with:
25-
nodeVersion: 16
25+
nodeVersion: 20
2626
packageManager: pnpm
2727
- name: Set variables
2828
id: vars

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@
1010
},
1111
"license": "(Apache-2.0 OR MIT)",
1212
"private": true,
13-
"packageManager": "pnpm@8.3.1",
13+
"packageManager": "pnpm@8.10.4",
1414
"engines": {
15+
"node": ">=18.0.0",
1516
"pnpm": ">=8"
1617
},
1718
"scripts": {

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "CLI for building for and deploying to The Graph",
55
"license": "(Apache-2.0 OR MIT)",
66
"engines": {
7-
"node": ">=14"
7+
"node": ">=18"
88
},
99
"bin": {
1010
"graph": "bin/run"

0 commit comments

Comments
 (0)