From 4b92a5ef87661a39021d5945a427d32d3a2873b2 Mon Sep 17 00:00:00 2001 From: Saihajpreet Singh Date: Wed, 15 Nov 2023 09:36:39 -0500 Subject: [PATCH] chore: upgrade to use node 20 (#1500) * chore: upgrade node 20 * chore: upgrade pnpm --- .changeset/fluffy-rockets-tickle.md | 5 +++++ .github/workflows/ci.yml | 11 +++++------ .github/workflows/pr.yml | 4 ++-- .github/workflows/release.yml | 2 +- package.json | 3 ++- packages/cli/package.json | 2 +- 6 files changed, 16 insertions(+), 11 deletions(-) create mode 100644 .changeset/fluffy-rockets-tickle.md diff --git a/.changeset/fluffy-rockets-tickle.md b/.changeset/fluffy-rockets-tickle.md new file mode 100644 index 000000000..3ddc634fa --- /dev/null +++ b/.changeset/fluffy-rockets-tickle.md @@ -0,0 +1,5 @@ +--- +'@graphprotocol/graph-cli': minor +--- + +upgrade to Node 20 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b51a87014..3d7e146a9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -31,8 +31,7 @@ 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 @@ -40,7 +39,7 @@ jobs: - uses: the-guild-org/shared-config/setup@main name: Setup Env with: - nodeVersion: 18 + nodeVersion: 20 packageManager: pnpm - name: Setup git user information @@ -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 @@ -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 diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index caf94bc75..288ccac5f 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -19,7 +19,7 @@ jobs: with: npmTag: alpha buildScript: build - nodeVersion: 16 + nodeVersion: 20 packageManager: pnpm secrets: githubToken: ${{ secrets.GITHUB_TOKEN }} @@ -31,7 +31,7 @@ jobs: with: npmTag: rc buildScript: build - nodeVersion: 16 + nodeVersion: 20 packageManager: pnpm restoreDeletedChangesets: true secrets: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bde50619a..0b919ba16 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/package.json b/package.json index a7ce876d5..f46d34a12 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/packages/cli/package.json b/packages/cli/package.json index 691bc75b8..38975bf50 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -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"