From aa34d9ebe579f33bc053145ceb96c44a92ce91dc Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Tue, 12 May 2026 16:51:15 +0200 Subject: [PATCH] Specify the node version in a `.node-version` file This should fix the Cloudflare Pages build --- .github/actions/build-frontend/action.yml | 2 +- .github/workflows/ci.yaml | 6 +++--- .github/workflows/docs.yaml | 2 +- .github/workflows/release-branch.yaml | 4 ++-- .github/workflows/release-bump.yaml | 2 +- .github/workflows/translations-download.yaml | 2 +- .github/workflows/translations-upload.yaml | 2 +- .node-version | 1 + Dockerfile | 3 ++- 9 files changed, 13 insertions(+), 11 deletions(-) create mode 100644 .node-version diff --git a/.github/actions/build-frontend/action.yml b/.github/actions/build-frontend/action.yml index 2cdb7c4f0..30346e48d 100644 --- a/.github/actions/build-frontend/action.yml +++ b/.github/actions/build-frontend/action.yml @@ -15,7 +15,7 @@ runs: - name: Install Node uses: actions/setup-node@v6.0.0 with: - node-version: "24" + node-version-file: .node-version cache: "pnpm" - name: Install dependencies diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3cc43d962..454d1f3f3 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -69,7 +69,7 @@ jobs: - name: Install Node uses: actions/setup-node@v6.3.0 with: - node-version: 24 + node-version-file: .node-version cache: "pnpm" - name: Install dependencies @@ -95,7 +95,7 @@ jobs: - name: Install Node uses: actions/setup-node@v6.3.0 with: - node-version: 24 + node-version-file: .node-version cache: "pnpm" - name: Install dependencies @@ -121,7 +121,7 @@ jobs: - name: Install Node uses: actions/setup-node@v6.3.0 with: - node-version: 24 + node-version-file: .node-version cache: "pnpm" - name: Install dependencies diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 1839a2372..68dad23d2 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -44,7 +44,7 @@ jobs: - name: Install Node uses: actions/setup-node@v6.3.0 with: - node-version: 24 + node-version-file: .node-version cache: "pnpm" - name: Build the documentation diff --git a/.github/workflows/release-branch.yaml b/.github/workflows/release-branch.yaml index e4c312551..3834e7aee 100644 --- a/.github/workflows/release-branch.yaml +++ b/.github/workflows/release-branch.yaml @@ -45,7 +45,7 @@ jobs: - name: Install Node uses: actions/setup-node@v6.3.0 with: - node-version: 24 + node-version-file: .node-version cache: "pnpm" - name: Install dependencies @@ -81,7 +81,7 @@ jobs: - name: Install Node uses: actions/setup-node@v6.3.0 with: - node-version: 24 + node-version-file: .node-version cache: "pnpm" - name: Install dependencies diff --git a/.github/workflows/release-bump.yaml b/.github/workflows/release-bump.yaml index 5abb198d8..cfc609d95 100644 --- a/.github/workflows/release-bump.yaml +++ b/.github/workflows/release-bump.yaml @@ -44,7 +44,7 @@ jobs: - name: Install Node uses: actions/setup-node@v6.3.0 with: - node-version: 24 + node-version-file: .node-version cache: "pnpm" - name: Install dependencies diff --git a/.github/workflows/translations-download.yaml b/.github/workflows/translations-download.yaml index f08e1e9b7..ea26718d1 100644 --- a/.github/workflows/translations-download.yaml +++ b/.github/workflows/translations-download.yaml @@ -27,7 +27,7 @@ jobs: - name: Install Node uses: actions/setup-node@v6.3.0 with: - node-version: 24 + node-version-file: .node-version cache: "pnpm" - name: Install dependencies diff --git a/.github/workflows/translations-upload.yaml b/.github/workflows/translations-upload.yaml index 6c9cbda31..3902a1945 100644 --- a/.github/workflows/translations-upload.yaml +++ b/.github/workflows/translations-upload.yaml @@ -26,7 +26,7 @@ jobs: - name: Install Node uses: actions/setup-node@v6.3.0 with: - node-version: 24 + node-version-file: .node-version cache: "pnpm" - name: Install dependencies diff --git a/.node-version b/.node-version new file mode 100644 index 000000000..5bf4400f2 --- /dev/null +++ b/.node-version @@ -0,0 +1 @@ +24.15.0 diff --git a/Dockerfile b/Dockerfile index 83360c210..499f1254e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,7 +15,8 @@ ARG DEBIAN_VERSION=13 ARG DEBIAN_VERSION_NAME=trixie # Keep in sync with .github/workflows/ci.yaml ARG RUSTC_VERSION=1.93.0 -ARG NODEJS_VERSION=24.13.0 +# Keep in sync with .node-version +ARG NODEJS_VERSION=24.15.0 # Keep in sync with .github/actions/build-policies/action.yml and policies/Makefile ARG OPA_VERSION=1.13.1 ARG CARGO_AUDITABLE_VERSION=0.7.2