From a557e4d11172f3b2f654a0fe0fb3d864370bea0f Mon Sep 17 00:00:00 2001 From: TheCoderAlex Date: Mon, 9 Sep 2024 10:27:46 +0800 Subject: [PATCH] fix npm deployment --- .../deploy/github/.github/workflows/deploy.yml.handlebars | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cli/templates/deploy/github/.github/workflows/deploy.yml.handlebars b/cli/templates/deploy/github/.github/workflows/deploy.yml.handlebars index 1c77f0c0..8141b059 100644 --- a/cli/templates/deploy/github/.github/workflows/deploy.yml.handlebars +++ b/cli/templates/deploy/github/.github/workflows/deploy.yml.handlebars @@ -35,6 +35,13 @@ jobs: # 选择要使用的 node 版本 node-version: 20 +{{#if (equal packageManager "npm")}} + # 安装依赖 + # Install dependencies + - name: Install Dependencies + run: npm ci +{{/if}} + {{#if (equal packageManager "yarn")}} - name: Run install uses: borales/actions-yarn@v4