From 2a238cb055e116d6e26fc469348676b3930402b0 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Thu, 26 Jun 2025 20:40:01 +0000 Subject: [PATCH] Update Node.js version to 20.x --- .github/workflows/deploytest.yml | 4 ++-- .github/workflows/frontendtest.yml | 2 +- .github/workflows/pre-commit.yml | 2 +- docker/Dockerfile.demo | 2 +- docker/Dockerfile.dev | 2 +- docs/host_services_setup.md | 2 +- docs/local_dev_docker.md | 2 +- docs/local_dev_host.md | 2 +- docs/local_dev_wsl.md | 2 +- k8s/images/app/Dockerfile | 2 +- package.json | 8 ++++---- 11 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/deploytest.yml b/.github/workflows/deploytest.yml index a6cac9754c..b5c3fef9a3 100644 --- a/.github/workflows/deploytest.yml +++ b/.github/workflows/deploytest.yml @@ -33,7 +33,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v4 with: - node-version: '18.x' + node-version: '20.x' cache: 'pnpm' - name: Install dependencies run: | @@ -69,7 +69,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v4 with: - node-version: '18.x' + node-version: '20.x' cache: 'pnpm' - name: Install node dependencies run: | diff --git a/.github/workflows/frontendtest.yml b/.github/workflows/frontendtest.yml index 36366b5651..f886ac8c6c 100644 --- a/.github/workflows/frontendtest.yml +++ b/.github/workflows/frontendtest.yml @@ -33,7 +33,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v4 with: - node-version: '18.x' + node-version: '20.x' cache: 'pnpm' - name: Install dependencies run: | diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 8658181f97..1bb5d71a03 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -40,7 +40,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v4 with: - node-version: '18.x' + node-version: '20.x' cache: 'pnpm' - name: Install dependencies run: | diff --git a/docker/Dockerfile.demo b/docker/Dockerfile.demo index aa67f2cb95..2ae03758b6 100644 --- a/docker/Dockerfile.demo +++ b/docker/Dockerfile.demo @@ -13,7 +13,7 @@ RUN apt-get update \ && apt-get install -y ca-certificates curl gnupg \ && mkdir -p /etc/apt/keyrings \ && curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \ - && echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list \ + && echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list \ && echo "Package: nodejs" >> /etc/apt/preferences.d/preferences \ && echo "Pin: origin deb.nodesource.com" >> /etc/apt/preferences.d/preferences \ && echo "Pin-Priority: 1001" >> /etc/apt/preferences.d/preferences\ diff --git a/docker/Dockerfile.dev b/docker/Dockerfile.dev index 13a9a5f243..f11338a199 100644 --- a/docker/Dockerfile.dev +++ b/docker/Dockerfile.dev @@ -24,7 +24,7 @@ RUN apt-get update \ && apt-get install -y ca-certificates curl gnupg \ && mkdir -p /etc/apt/keyrings \ && curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \ - && echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list \ + && echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list \ && echo "Package: nodejs" >> /etc/apt/preferences.d/preferences \ && echo "Pin: origin deb.nodesource.com" >> /etc/apt/preferences.d/preferences \ && echo "Pin-Priority: 1001" >> /etc/apt/preferences.d/preferences\ diff --git a/docs/host_services_setup.md b/docs/host_services_setup.md index 451c3b3c95..74aa267cbf 100644 --- a/docs/host_services_setup.md +++ b/docs/host_services_setup.md @@ -87,7 +87,7 @@ export LDFLAGS="-L/opt/homebrew/opt/openssl/lib" ``` ## Install frontend dependencies -For guidance on installing Node 18.X, pnpm, and all required frontend dependencies, running the services, initializing Studio, and running the development server , please refer to the [Install Frontend Dependencies](./local_dev_host.md#install-frontend-dependencies) section in our Local Development with host guide. +For guidance on installing Node 20.X, pnpm, and all required frontend dependencies, running the services, initializing Studio, and running the development server , please refer to the [Install Frontend Dependencies](./local_dev_host.md#install-frontend-dependencies) section in our Local Development with host guide. Either of the above commands will take a few minutes to build the frontend. When it's done, you can sign in with the account created by the `pnpm run devsetup` command: - url: `http://localhost:8080/accounts/login/` diff --git a/docs/local_dev_docker.md b/docs/local_dev_docker.md index ccd3cad729..3d89e3a38b 100644 --- a/docs/local_dev_docker.md +++ b/docs/local_dev_docker.md @@ -21,7 +21,7 @@ export LDFLAGS="-L/opt/homebrew/opt/openssl/lib" ``` ## Install frontend dependencies -The project requires `Node 18.X` as the runtime and `pnpm` as the package manager. We make use of [`Volta`](https://docs.volta.sh/guide/getting-started) to manage the same automatically. Please make sure you have volta installed and your shell configured to use volta. You can then install all the dependencies by running: +The project requires `Node 20.X` as the runtime and `pnpm` as the package manager. We make use of [`Volta`](https://docs.volta.sh/guide/getting-started) to manage the same automatically. Please make sure you have volta installed and your shell configured to use volta. You can then install all the dependencies by running: ```bash corepack use pnpm # or `volta install pnpm` pnpm install diff --git a/docs/local_dev_host.md b/docs/local_dev_host.md index 17e6243761..548aa05d91 100644 --- a/docs/local_dev_host.md +++ b/docs/local_dev_host.md @@ -113,7 +113,7 @@ export LDFLAGS="-L/opt/homebrew/opt/openssl/lib" ``` ## Install frontend dependencies -The project requires `Node 18.X` as the runtime and `pnpm` as the package manager. We make use of [`Volta`](https://docs.volta.sh/guide/getting-started) to manage the same automatically. Please make sure you have volta installed and your shell configured to use volta. You can then install all the dependencies by running: +The project requires `Node 20.X` as the runtime and `pnpm` as the package manager. We make use of [`Volta`](https://docs.volta.sh/guide/getting-started) to manage the same automatically. Please make sure you have volta installed and your shell configured to use volta. You can then install all the dependencies by running: ```bash corepack use pnpm # or `volta install pnpm` pnpm install diff --git a/docs/local_dev_wsl.md b/docs/local_dev_wsl.md index e01e4ad75b..d94f308553 100644 --- a/docs/local_dev_wsl.md +++ b/docs/local_dev_wsl.md @@ -121,7 +121,7 @@ The packages `postgresql-12`, `postgresql-contrib`, and `postgresql-server-dev-a ## Install Frontend Dependencies -For guidance on installing Node 18.X, pnpm, and all required frontend dependencies, running the services, initializing Studio, and running the development server , please refer to the [Install Frontend Dependencies](./local_dev_host.md#install-frontend-dependencies) section in our Local Development with host guide. +For guidance on installing Node 20.X, pnpm, and all required frontend dependencies, running the services, initializing Studio, and running the development server , please refer to the [Install Frontend Dependencies](./local_dev_host.md#install-frontend-dependencies) section in our Local Development with host guide. ## Access Kolibri Studio diff --git a/k8s/images/app/Dockerfile b/k8s/images/app/Dockerfile index 8693e4b65c..a9477f90ed 100644 --- a/k8s/images/app/Dockerfile +++ b/k8s/images/app/Dockerfile @@ -13,7 +13,7 @@ RUN apt-get update \ && apt-get install -y ca-certificates curl gnupg \ && mkdir -p /etc/apt/keyrings \ && curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \ - && echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list \ + && echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list \ && echo "Package: nodejs" >> /etc/apt/preferences.d/preferences \ && echo "Pin: origin deb.nodesource.com" >> /etc/apt/preferences.d/preferences \ && echo "Pin-Priority: 1001" >> /etc/apt/preferences.d/preferences\ diff --git a/package.json b/package.json index 72f806ecd0..dc44129c83 100644 --- a/package.json +++ b/package.json @@ -169,16 +169,16 @@ }, "false": {}, "engines": { - "node": "18.x" + "node": "20.x" }, "browserslist": [ "> 1%", "Firefox ESR" ], - "packageManager": "pnpm@10.4.1+sha512.c753b6c3ad7afa13af388fa6d808035a008e30ea9993f58c6663e2bc5ff21679aa834db094987129aa4d488b86df57f7b634981b2f827cdcacc698cc0cfb88af", + "packageManager": "pnpm@10.12.4+sha512.5ea8b0deed94ed68691c9bad4c955492705c5eeb8a87ef86bc62c74a26b037b08ff9570f108b2e4dbd1dd1a9186fea925e527f141c648e85af45631074680184", "volta": { - "node": "18.20.7", - "pnpm": "10.4.1" + "node": "20.19.3", + "pnpm": "10.12.4" }, "pnpm": { "onlyBuiltDependencies": [