From 695943dcd6bfe3cfae4ae4c97c2fe99a563894c1 Mon Sep 17 00:00:00 2001 From: afc163 Date: Wed, 31 May 2023 10:16:19 +0800 Subject: [PATCH] chore: fix deploy action (#42730) --- .github/workflows/site-deploy.yml | 2 +- webpack.config.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/site-deploy.yml b/.github/workflows/site-deploy.yml index c924d3ddb7..5a19ca0cfb 100644 --- a/.github/workflows/site-deploy.yml +++ b/.github/workflows/site-deploy.yml @@ -73,7 +73,7 @@ jobs: - name: build dist and bundle analyzer report run: npm run dist env: - CI: false + ANALYZER: 1 - name: Get version id: publish-version diff --git a/webpack.config.js b/webpack.config.js index 05f6c0a700..a6adb91995 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -39,7 +39,7 @@ if (process.env.RUN_ENV === 'PRODUCTION') { }); } - if (!process.env.CI) { + if (!process.env.CI || process.env.ANALYZER) { config.plugins.push( new BundleAnalyzerPlugin({ analyzerMode: 'static',