chore: fix deploy action (#42730)

This commit is contained in:
afc163 2023-05-31 10:16:19 +08:00 committed by GitHub
parent 99924dddc5
commit 695943dcd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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',