From f2fc2acf65b0fb0092f2d31b81da106586e7ae12 Mon Sep 17 00:00:00 2001 From: Nicolas Clerc Date: Thu, 6 Aug 2026 13:18:51 +0200 Subject: [PATCH] =?UTF-8?q?=E2=AC=86=EF=B8=8F(ci)=20bump=20the=20build-mai?= =?UTF-8?q?ls=20job=20to=20node=2022?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit mjml v5 pulls commander@15 which requires node >= 22.12. Include the yarn.lock and build scripts in the mail templates cache key so dependency bumps regenerate the templates. --- .github/workflows/build-mails.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-mails.yml b/.github/workflows/build-mails.yml index 6f241907..ff1c9e5d 100644 --- a/.github/workflows/build-mails.yml +++ b/.github/workflows/build-mails.yml @@ -16,14 +16,14 @@ jobs: - name: Install Node.js uses: actions/setup-node@v4 with: - node-version: "18" + node-version: "22" - name: Restore the mail templates uses: actions/cache@v4 id: mail-templates with: path: "src/backend/core/templates/mail" - key: mail-templates-${{ hashFiles('src/mail/mjml') }} + key: mail-templates-${{ hashFiles('src/mail/mjml/**', 'src/mail/yarn.lock', 'src/mail/bin/**') }} - name: Install yarn if: steps.mail-templates.outputs.cache-hit != 'true' @@ -42,4 +42,4 @@ jobs: uses: actions/cache@v4 with: path: "src/backend/core/templates/mail" - key: mail-templates-${{ hashFiles('src/mail/mjml') }} + key: mail-templates-${{ hashFiles('src/mail/mjml/**', 'src/mail/yarn.lock', 'src/mail/bin/**') }}