diff --git a/cli/templates/deploy/github/.github/workflows/deploy.yml.handlebars b/cli/templates/deploy/github/.github/workflows/deploy.yml.handlebars index 83e34c58..7a5e5647 100644 --- a/cli/templates/deploy/github/.github/workflows/deploy.yml.handlebars +++ b/cli/templates/deploy/github/.github/workflows/deploy.yml.handlebars @@ -29,7 +29,7 @@ jobs: uses: actions/setup-node@v4 with: # 选择要使用的 node 版本 - node-version: 20 + node-version: 22 {{#if (equal packageManager "npm")}} # 安装依赖 diff --git a/cli/templates/deploy/netlify/netlify.toml.handlebars b/cli/templates/deploy/netlify/netlify.toml.handlebars index 70ac84f2..749b9440 100644 --- a/cli/templates/deploy/netlify/netlify.toml.handlebars +++ b/cli/templates/deploy/netlify/netlify.toml.handlebars @@ -5,5 +5,5 @@ publish = "{{ docsDir }}/.vuepress/dist" command = "{{#if (equal packageManager 'yarn')}}yarn && yarn{{else}}{{packageManager}} run{{/if}} docs:build" [build.environment] -NODE_VERSION = "20" +NODE_VERSION = "22" NPM_FLAGS = "--version"