From 8f52f506082181a3ebd2043a8791baab3627320a Mon Sep 17 00:00:00 2001 From: Aiden-FE Date: Mon, 18 Mar 2024 16:54:17 +0800 Subject: [PATCH] fix: ci error --- .github/workflows/lint-and-test.yml | 3 --- .github/workflows/publish-and-deploy.yml | 7 +++---- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/lint-and-test.yml b/.github/workflows/lint-and-test.yml index c10f2e0..e1e2357 100644 --- a/.github/workflows/lint-and-test.yml +++ b/.github/workflows/lint-and-test.yml @@ -5,9 +5,6 @@ on: branches: - '**' -env: - NODE_ENV: production - jobs: lint: name: Lint code diff --git a/.github/workflows/publish-and-deploy.yml b/.github/workflows/publish-and-deploy.yml index 15a191c..a540173 100644 --- a/.github/workflows/publish-and-deploy.yml +++ b/.github/workflows/publish-and-deploy.yml @@ -14,9 +14,6 @@ concurrency: group: 'deploy' cancel-in-progress: false -env: - NODE_ENV: production - jobs: lint: name: Publish and deploy @@ -57,7 +54,7 @@ jobs: SKIP_INSTALL_SIMPLE_GIT_HOOKS: 1 SKIP_SIMPLE_GIT_HOOKS: 1 run: | - pnpm install + pnpm install --frozen-lockfile # 同步版本及推送标签 - name: Bump version and push tag @@ -75,6 +72,8 @@ jobs: # 构建项目 - name: Run build + env: + NODE_ENV: production run: | pnpm build