From 8d3eda138fd45e722232db2dcef42281404678de Mon Sep 17 00:00:00 2001 From: Mark Kunzmann Date: Thu, 18 Sep 2025 10:37:10 +0200 Subject: [PATCH 1/3] fix: Handle ESM modules --- .github/workflows/preload-varnish-cache.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/preload-varnish-cache.yml b/.github/workflows/preload-varnish-cache.yml index 3176b43a8d..b820b49289 100644 --- a/.github/workflows/preload-varnish-cache.yml +++ b/.github/workflows/preload-varnish-cache.yml @@ -20,4 +20,4 @@ jobs: - name: Install Playwright Browsers run: npx playwright install --with-deps chromium - name: Run Playwright test to preload Varnish cache - run: ./node_modules/.bin/ts-node ./e2e/varnish-cache-preload.ts + run: ./node_modules/.bin/ts-node --esm ./e2e/varnish-cache-preload.ts From 4af6c5679db812fed6e26d03987294ea7a8c68a5 Mon Sep 17 00:00:00 2001 From: Mark Kunzmann Date: Thu, 18 Sep 2025 11:12:26 +0200 Subject: [PATCH 2/3] fix: Import syntax --- .github/workflows/preload-varnish-cache.yml | 2 +- e2e/varnish-cache-preload.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/preload-varnish-cache.yml b/.github/workflows/preload-varnish-cache.yml index b820b49289..3176b43a8d 100644 --- a/.github/workflows/preload-varnish-cache.yml +++ b/.github/workflows/preload-varnish-cache.yml @@ -20,4 +20,4 @@ jobs: - name: Install Playwright Browsers run: npx playwright install --with-deps chromium - name: Run Playwright test to preload Varnish cache - run: ./node_modules/.bin/ts-node --esm ./e2e/varnish-cache-preload.ts + run: ./node_modules/.bin/ts-node ./e2e/varnish-cache-preload.ts diff --git a/e2e/varnish-cache-preload.ts b/e2e/varnish-cache-preload.ts index a6f92de997..0461f9ba54 100644 --- a/e2e/varnish-cache-preload.ts +++ b/e2e/varnish-cache-preload.ts @@ -1,5 +1,5 @@ import fetch from "node-fetch"; -import pLimit from "p-limit"; +import * as pLimit from "p-limit"; import { chromium, Page } from "playwright"; import { locales } from "../app/locales/constants"; From 39cf4b60e1521583130e3b3978c6e5e9b4c076b1 Mon Sep 17 00:00:00 2001 From: Mark Kunzmann Date: Thu, 18 Sep 2025 12:31:09 +0200 Subject: [PATCH 3/3] doc: Update log --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3e6828d66b..d7af05c31a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,7 +11,8 @@ You can also check the ## Unreleased -Nothing yet. +- Fixes + - Fixed workflow for populating Varnish cache ### 6.0.0 - 2025-09-05