Browse Source

chore: fix deploy action (#42730)

pull/42744/head
afc163 2 years ago
committed by GitHub
parent
commit
695943dcd6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      .github/workflows/site-deploy.yml
  2. 2
      webpack.config.js

2
.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

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

Loading…
Cancel
Save