⬆️(ci) bump the build-mails job to node 22

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.
This commit is contained in:
Nicolas Clerc
2026-08-06 16:19:15 +02:00
parent 6827ff633a
commit f2fc2acf65
+3 -3
View File
@@ -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/**') }}