From 414e4fb433d158452920de6755ebaef4ad2acc3a Mon Sep 17 00:00:00 2001 From: pengzhanbo Date: Sat, 22 Mar 2025 00:06:25 +0800 Subject: [PATCH] feat(cli): update template with deploy `nodejs` version to `22` (#531) --- .../deploy/github/.github/workflows/deploy.yml.handlebars | 2 +- cli/templates/deploy/netlify/netlify.toml.handlebars | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"