Skip to content

Commit

Permalink
chore: upgrade to use node 20 (#1500)
Browse files Browse the repository at this point in the history
* chore: upgrade node 20

* chore: upgrade pnpm
  • Loading branch information
saihaj authored Nov 15, 2023
1 parent 4fa0ace commit 4b92a5e
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 11 deletions.
5 changes: 5 additions & 0 deletions .changeset/fluffy-rockets-tickle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphprotocol/graph-cli': minor
---

upgrade to Node 20
11 changes: 5 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: the-guild-org/shared-config/setup@main
name: Setup Env
with:
nodeVersion: 18
nodeVersion: 20
packageManager: pnpm

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

- uses: the-guild-org/shared-config/setup@main
name: Setup Env
with:
nodeVersion: 18
nodeVersion: 20
packageManager: pnpm

- name: Setup git user information
Expand Down Expand Up @@ -69,7 +68,7 @@ jobs:
- uses: the-guild-org/shared-config/setup@main
name: Setup Env
with:
nodeVersion: 18
nodeVersion: 20
packageManager: pnpm

- name: Build Packages
Expand All @@ -96,7 +95,7 @@ jobs:
- uses: the-guild-org/shared-config/setup@main
name: Setup Env
with:
nodeVersion: 18
nodeVersion: 20
packageManager: pnpm

- name: Build Packages
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
with:
npmTag: alpha
buildScript: build
nodeVersion: 16
nodeVersion: 20
packageManager: pnpm
secrets:
githubToken: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -31,7 +31,7 @@ jobs:
with:
npmTag: rc
buildScript: build
nodeVersion: 16
nodeVersion: 20
packageManager: pnpm
restoreDeletedChangesets: true
secrets:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Setup environment
uses: the-guild-org/shared-config/setup@main
with:
nodeVersion: 16
nodeVersion: 20
packageManager: pnpm
- name: Set variables
id: vars
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
},
"license": "(Apache-2.0 OR MIT)",
"private": true,
"packageManager": "pnpm@8.3.1",
"packageManager": "pnpm@8.10.4",
"engines": {
"node": ">=18.0.0",
"pnpm": ">=8"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "CLI for building for and deploying to The Graph",
"license": "(Apache-2.0 OR MIT)",
"engines": {
"node": ">=14"
"node": ">=18"
},
"bin": {
"graph": "bin/run"
Expand Down

0 comments on commit 4b92a5e

Please sign in to comment.