From c77833e8ed71e031317a6a1a9d60492d21d6f67e Mon Sep 17 00:00:00 2001 From: sharevb Date: Sat, 13 Jun 2026 21:20:21 +0200 Subject: [PATCH 1/3] Add GitHub Actions workflow for Vite bundle analysis --- .github/workflows/bundle-analyzer.yml | 40 +++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/bundle-analyzer.yml diff --git a/.github/workflows/bundle-analyzer.yml b/.github/workflows/bundle-analyzer.yml new file mode 100644 index 0000000000..920e1e4071 --- /dev/null +++ b/.github/workflows/bundle-analyzer.yml @@ -0,0 +1,40 @@ +name: Vite Bundle Visualizer + +on: + push: + branches: [ chore/all-my-stuffs ] + +jobs: + analyze: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v6 + - run: | + echo "Before: corepack version => $(corepack --version || echo 'not installed')" + npm install -g corepack@latest + echo "After : corepack version => $(corepack --version)" + corepack enable + pnpm --version + - uses: actions/setup-node@v6 + with: + node-version: 22 + cache: 'pnpm' + + - name: Install dependencies + run: pnpm i --ignore-scripts + + # Ensure vite-bundle-visualizer is installed + # (or remove this step if already in package.json) + - name: Install visualizer + run: pnpm install --save-dev vite-bundle-visualizer + + - name: Build the app + run: pnpm build + + - name: Upload bundle visualizer report + uses: actions/upload-artifact@v4 + with: + name: bundle-visualizer-report + path: dist/stats.html + if-no-files-found: error From de3e223828a3f9cef3a57496a093cb8a68c13c42 Mon Sep 17 00:00:00 2001 From: sharevb Date: Sat, 13 Jun 2026 22:13:02 +0200 Subject: [PATCH 2/3] Add bundle visualizer report generation step Add step to generate bundle visualizer report using vite-bundle-visualizer. --- .github/workflows/bundle-analyzer.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/bundle-analyzer.yml b/.github/workflows/bundle-analyzer.yml index 920e1e4071..03c6f82a13 100644 --- a/.github/workflows/bundle-analyzer.yml +++ b/.github/workflows/bundle-analyzer.yml @@ -32,6 +32,12 @@ jobs: - name: Build the app run: pnpm build + - name: Generate bundle visualizer report + run: | + # Generate stats.html using npx + npx vite-bundle-visualizer dist --template treemap --open false + + - name: Upload bundle visualizer report uses: actions/upload-artifact@v4 with: From baa084ea3c37000748b79878d7349d439da5d189 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 15 Jun 2026 13:16:18 +0000 Subject: [PATCH 3/3] chore(deps): update pnpm/action-setup action to v6 --- .github/workflows/sharevb-github-pages-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sharevb-github-pages-publish.yml b/.github/workflows/sharevb-github-pages-publish.yml index f590275764..54774194da 100644 --- a/.github/workflows/sharevb-github-pages-publish.yml +++ b/.github/workflows/sharevb-github-pages-publish.yml @@ -39,7 +39,7 @@ jobs: with: node-version: 22 - - uses: pnpm/action-setup@v2 + - uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6 name: Install pnpm id: pnpm-install with: