From 51f13191b3fcb8c1d27e6d795a93e5731c67ea68 Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Wed, 9 Apr 2025 08:36:43 +0530 Subject: [PATCH] Node 20 => 22 --- .github/workflows/desktop-lint.yml | 2 +- .github/workflows/docs-deploy.yml | 2 +- .github/workflows/docs-verify-build.yml | 2 +- .github/workflows/infra-deploy-staff.yml | 2 +- .github/workflows/infra-lint-staff.yml | 2 +- .github/workflows/web-deploy-one.yml | 2 +- .github/workflows/web-deploy-preview.yml | 2 +- .github/workflows/web-deploy-staging.yml | 2 +- .github/workflows/web-deploy.yml | 2 +- .github/workflows/web-lint.yml | 2 +- desktop/.github/workflows/desktop-release.yml | 2 +- web/Dockerfile | 2 +- web/docs/new.md | 4 ++-- 13 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/desktop-lint.yml b/.github/workflows/desktop-lint.yml index 8480fabc0d..c384cb2268 100644 --- a/.github/workflows/desktop-lint.yml +++ b/.github/workflows/desktop-lint.yml @@ -23,7 +23,7 @@ jobs: - name: Setup node and enable yarn caching uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: "yarn" cache-dependency-path: "desktop/yarn.lock" diff --git a/.github/workflows/docs-deploy.yml b/.github/workflows/docs-deploy.yml index 1737775726..10fc84fe5f 100644 --- a/.github/workflows/docs-deploy.yml +++ b/.github/workflows/docs-deploy.yml @@ -28,7 +28,7 @@ jobs: - name: Setup node and enable yarn caching uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: "yarn" cache-dependency-path: "docs/yarn.lock" diff --git a/.github/workflows/docs-verify-build.yml b/.github/workflows/docs-verify-build.yml index a0b4cc359a..afede699b6 100644 --- a/.github/workflows/docs-verify-build.yml +++ b/.github/workflows/docs-verify-build.yml @@ -28,7 +28,7 @@ jobs: - name: Setup node and enable yarn caching uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: "yarn" cache-dependency-path: "docs/yarn.lock" diff --git a/.github/workflows/infra-deploy-staff.yml b/.github/workflows/infra-deploy-staff.yml index 6f1bf7212e..c38ede760e 100644 --- a/.github/workflows/infra-deploy-staff.yml +++ b/.github/workflows/infra-deploy-staff.yml @@ -28,7 +28,7 @@ jobs: - name: Setup node and enable yarn caching uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: "yarn" cache-dependency-path: "infra/staff/yarn.lock" diff --git a/.github/workflows/infra-lint-staff.yml b/.github/workflows/infra-lint-staff.yml index ed2189181d..9022fa6125 100644 --- a/.github/workflows/infra-lint-staff.yml +++ b/.github/workflows/infra-lint-staff.yml @@ -25,7 +25,7 @@ jobs: - name: Setup node and enable yarn caching uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: "yarn" cache-dependency-path: "infra/staff/yarn.lock" diff --git a/.github/workflows/web-deploy-one.yml b/.github/workflows/web-deploy-one.yml index 62711ec7ae..fd24af13e3 100644 --- a/.github/workflows/web-deploy-one.yml +++ b/.github/workflows/web-deploy-one.yml @@ -33,7 +33,7 @@ jobs: - name: Setup node and enable yarn caching uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: "yarn" cache-dependency-path: "web/yarn.lock" diff --git a/.github/workflows/web-deploy-preview.yml b/.github/workflows/web-deploy-preview.yml index 3590adac31..52d131179c 100644 --- a/.github/workflows/web-deploy-preview.yml +++ b/.github/workflows/web-deploy-preview.yml @@ -33,7 +33,7 @@ jobs: - name: Setup node and enable yarn caching uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: "yarn" cache-dependency-path: "web/yarn.lock" diff --git a/.github/workflows/web-deploy-staging.yml b/.github/workflows/web-deploy-staging.yml index dddd03d53d..e0652c36b1 100644 --- a/.github/workflows/web-deploy-staging.yml +++ b/.github/workflows/web-deploy-staging.yml @@ -41,7 +41,7 @@ jobs: - name: Setup node and enable yarn caching uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: "yarn" cache-dependency-path: "web/yarn.lock" diff --git a/.github/workflows/web-deploy.yml b/.github/workflows/web-deploy.yml index 18dd252443..32fee17ad4 100644 --- a/.github/workflows/web-deploy.yml +++ b/.github/workflows/web-deploy.yml @@ -37,7 +37,7 @@ jobs: - name: Setup node and enable yarn caching uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: "yarn" cache-dependency-path: "web/yarn.lock" diff --git a/.github/workflows/web-lint.yml b/.github/workflows/web-lint.yml index 2971bc3718..517022997d 100644 --- a/.github/workflows/web-lint.yml +++ b/.github/workflows/web-lint.yml @@ -28,7 +28,7 @@ jobs: - name: Setup node and enable yarn caching uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: "yarn" cache-dependency-path: "web/yarn.lock" diff --git a/desktop/.github/workflows/desktop-release.yml b/desktop/.github/workflows/desktop-release.yml index 335de87258..fa8c8e53ef 100644 --- a/desktop/.github/workflows/desktop-release.yml +++ b/desktop/.github/workflows/desktop-release.yml @@ -52,7 +52,7 @@ jobs: - name: Setup node uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 - name: Increase yarn timeout # `yarn install` times out sometimes on the Windows runner, diff --git a/web/Dockerfile b/web/Dockerfile index b2f9ce4e4e..4b0f4020e7 100644 --- a/web/Dockerfile +++ b/web/Dockerfile @@ -1,6 +1,6 @@ # Docs - https://github.com/ente-io/ente/blob/main/web/docs/docker.md -FROM node:20-alpine AS builder +FROM node:22-alpine AS builder WORKDIR /build COPY . . diff --git a/web/docs/new.md b/web/docs/new.md index 8485a5dcd1..5c56237065 100644 --- a/web/docs/new.md +++ b/web/docs/new.md @@ -13,9 +13,9 @@ development, here is a recommended workflow: some examples: - OS agnostic: Install [NVM](https://github.com/nvm-sh/nvm), then - `nvm install 20 && corepack enable`. + `nvm install 22 && corepack enable`. - - macOS: `brew install node@20` + - macOS: `brew install node@22` - Ubuntu: `sudo apt install nodejs npm && sudo npm i -g corepack`