From d12f942d29fe5b8e7bc07795ae1f2ebe51993567 Mon Sep 17 00:00:00 2001 From: Anthony LC Date: Thu, 5 Jun 2025 10:39:55 +0200 Subject: [PATCH] =?UTF-8?q?=E2=AC=86=EF=B8=8F(project)=20bump=20project=20?= =?UTF-8?q?to=20node=2022?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit "yargs" dependency requires node 22, so we update the project to use it. Node 22 is the latest LTS version, so this is a good time to do it. --- .github/workflows/crowdin_download.yml | 2 +- .github/workflows/crowdin_upload.yml | 2 +- .github/workflows/dependencies.yml | 2 +- .github/workflows/impress-frontend.yml | 10 +++++----- src/frontend/servers/y-provider/package.json | 2 +- src/mail/package.json | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/crowdin_download.yml b/.github/workflows/crowdin_download.yml index 84a075bb..9cdd8172 100644 --- a/.github/workflows/crowdin_download.yml +++ b/.github/workflows/crowdin_download.yml @@ -10,7 +10,7 @@ jobs: install-dependencies: uses: ./.github/workflows/dependencies.yml with: - node_version: '20.x' + node_version: '22.x' with-front-dependencies-installation: true synchronize-with-crowdin: diff --git a/.github/workflows/crowdin_upload.yml b/.github/workflows/crowdin_upload.yml index 0dbfa57a..83937c1b 100644 --- a/.github/workflows/crowdin_upload.yml +++ b/.github/workflows/crowdin_upload.yml @@ -10,7 +10,7 @@ jobs: install-dependencies: uses: ./.github/workflows/dependencies.yml with: - node_version: '20.x' + node_version: '22.x' with-front-dependencies-installation: true with-build_mails: true diff --git a/.github/workflows/dependencies.yml b/.github/workflows/dependencies.yml index 31097644..9d21f816 100644 --- a/.github/workflows/dependencies.yml +++ b/.github/workflows/dependencies.yml @@ -5,7 +5,7 @@ on: inputs: node_version: required: false - default: '20.x' + default: '22.x' type: string with-front-dependencies-installation: type: boolean diff --git a/.github/workflows/impress-frontend.yml b/.github/workflows/impress-frontend.yml index ab7fcce9..4dfd3298 100644 --- a/.github/workflows/impress-frontend.yml +++ b/.github/workflows/impress-frontend.yml @@ -13,7 +13,7 @@ jobs: install-dependencies: uses: ./.github/workflows/dependencies.yml with: - node_version: '20.x' + node_version: '22.x' with-front-dependencies-installation: true test-front: @@ -26,7 +26,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: "20.x" + node-version: "22.x" - name: Restore the frontend cache uses: actions/cache@v4 @@ -48,7 +48,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: "20.x" + node-version: "22.x" - name: Restore the frontend cache uses: actions/cache@v4 with: @@ -70,7 +70,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: "20.x" + node-version: "22.x" - name: Restore the frontend cache uses: actions/cache@v4 @@ -109,7 +109,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: "20.x" + node-version: "22.x" - name: Restore the frontend cache uses: actions/cache@v4 diff --git a/src/frontend/servers/y-provider/package.json b/src/frontend/servers/y-provider/package.json index d7676939..719417aa 100644 --- a/src/frontend/servers/y-provider/package.json +++ b/src/frontend/servers/y-provider/package.json @@ -13,7 +13,7 @@ "test": "jest" }, "engines": { - "node": ">=18" + "node": ">=22" }, "dependencies": { "@blocknote/server-util": "0.31.1", diff --git a/src/mail/package.json b/src/mail/package.json index b19dc727..d904d626 100644 --- a/src/mail/package.json +++ b/src/mail/package.json @@ -14,7 +14,7 @@ "build": "yarn build-mjml-to-html && yarn build-html-to-plain-text" }, "volta": { - "node": "16.15.1" + "node": "22" }, "repository": "https://github.com/numerique-gouv/impress", "author": "DINUM",