From 4798a1ce3ada5c9ab22dd8746c16b05cca8b0d17 Mon Sep 17 00:00:00 2001 From: Adrien Crivelli Date: Fri, 30 May 2025 11:57:18 +0200 Subject: [PATCH 1/2] Update node.js to v22 --- .github/workflows/main.yml | 15 ++++++--------- .github/workflows/pr.yml | 4 ++-- .github/workflows/release.yml | 2 +- .github/workflows/website.yml | 2 +- .nvmrc | 2 +- 5 files changed, 11 insertions(+), 14 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index eb7f3ccb4..79f5a6756 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,10 +9,9 @@ jobs: steps: - uses: actions/checkout@master - - name: Use Node.js 18 - uses: actions/setup-node@master + - uses: actions/setup-node@master with: - node-version: 18 + node-version: 22 - uses: actions/cache@v4 name: Cache node_modules @@ -59,10 +58,9 @@ jobs: steps: - uses: actions/checkout@master - - name: Use Node.js 18 - uses: actions/setup-node@master + - uses: actions/setup-node@master with: - node-version: 18 + node-version: 22 - uses: actions/cache@v4 name: Cache node_modules @@ -89,10 +87,9 @@ jobs: steps: - uses: actions/checkout@master - - name: Use Node.js 18 - uses: actions/setup-node@master + - uses: actions/setup-node@master with: - node-version: 18 + node-version: 22 - uses: actions/cache@v4 name: Cache node_modules diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 40135ad19..a7e02d71f 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -20,7 +20,7 @@ jobs: with: npmTag: alpha buildScript: build - nodeVersion: 18 + nodeVersion: 22 secrets: githubToken: ${{ secrets.GITHUB_TOKEN }} npmToken: ${{ secrets.NPM_TOKEN }} @@ -36,7 +36,7 @@ jobs: npmTag: rc restoreDeletedChangesets: true buildScript: build - nodeVersion: 18 + nodeVersion: 22 secrets: githubToken: ${{ secrets.GITHUB_TOKEN }} npmToken: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6046ef27a..734b7a6ef 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,7 +15,7 @@ jobs: with: createGithubReleases: true releaseScript: release - nodeVersion: 18 + nodeVersion: 22 secrets: githubToken: ${{ secrets.GITHUB_TOKEN }} npmToken: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index 3367fdad3..f6853be39 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -23,7 +23,7 @@ jobs: - uses: the-guild-org/shared-config/setup@main name: website with: - nodeVersion: 18 # change if needed + nodeVersion: 22 # change if needed packageManager: yarn # change if needed - uses: the-guild-org/shared-config/website-cf@main diff --git a/.nvmrc b/.nvmrc index 3c032078a..2bd5a0a98 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -18 +22 From 1c8d3cec684d8198dc74b8188ae57ba31850f94f Mon Sep 17 00:00:00 2001 From: Adrien Crivelli Date: Fri, 30 May 2025 12:12:37 +0200 Subject: [PATCH 2/2] Pre-install wrangler To avoid error during cloudflare/wrangler-action as explained in https://github.com/cloudflare/wrangler-action/issues/181 --- .github/workflows/website.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index f6853be39..ea3e2401f 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -26,6 +26,9 @@ jobs: nodeVersion: 22 # change if needed packageManager: yarn # change if needed + - name: Pre-install wrangler + run: yarn add wrangler --ignore-workspace-root-check + - uses: the-guild-org/shared-config/website-cf@main name: build and deploy website env: