From 2a5aeaa5908fcdc0a10bb147fe515fea01aa2510 Mon Sep 17 00:00:00 2001 From: QyInvoLing <2258191452@qq.com> Date: Sun, 12 Jan 2025 19:16:04 +0800 Subject: [PATCH 1/2] fix(low-node-version): Fix #31 by upgrade node image version in dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 21f5a19..39ebd88 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:12-buster-slim +FROM node:20 LABEL version="1.0.3" LABEL repository="https://github.com/sma11black/hexo-action" From ef95daa01066c85d1d587b27f8e1e5b8acb1e7c2 Mon Sep 17 00:00:00 2001 From: QyInvoLing <2258191452@qq.com> Date: Sun, 12 Jan 2025 19:42:14 +0800 Subject: [PATCH 2/2] fix: wrong require path --- sync_deploy_history.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sync_deploy_history.js b/sync_deploy_history.js index 6a4ae93..24b71f4 100644 --- a/sync_deploy_history.js +++ b/sync_deploy_history.js @@ -4,7 +4,7 @@ const pathFn = require('path'); const fs = require('fs'); const parseConfig = require('hexo-deployer-git/lib/parse_config'); -const spawn = require('hexo-util/lib/spawn'); +const spawn = require('hexo-util/dist/spawn'); const Hexo = require('hexo'); async function sync_deploy_history() {