From de46de2c66a0bb0441bab1fa050626471faedff0 Mon Sep 17 00:00:00 2001 From: Derek Roberts Date: Wed, 7 Oct 2026 20:16:02 -0700 Subject: [PATCH] fix: import ESM packages without a default export Node 24 rejects default imports of @actions/core and js-yaml, so the scheduled ministry and crawler jobs exit before they run. --- crawler/src/main.js | 2 +- schema/script/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crawler/src/main.js b/crawler/src/main.js index 2b96b7d1..83dc6b39 100644 --- a/crawler/src/main.js +++ b/crawler/src/main.js @@ -1,6 +1,6 @@ import axios from "axios"; import * as dotenv from "dotenv"; -import jsYaml from "js-yaml"; +import * as jsYaml from "js-yaml"; dotenv.config(); const token = process.env.GIT_TOKEN; diff --git a/schema/script/index.js b/schema/script/index.js index 1e7b9514..1e9ac27d 100644 --- a/schema/script/index.js +++ b/schema/script/index.js @@ -1,6 +1,6 @@ import * as fs from "fs"; import axios from "axios"; -import core from "@actions/core"; +import * as core from "@actions/core"; import * as cheerio from "cheerio"; import pkg from 'lodash'; const { isEqual } = pkg;