Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit bd6cc71

Browse files
authored
Fix bundle stats (#6846)
* save cache to 4.x * save fix * save again * test * test * test * fix * finish
1 parent 0e59f28 commit bd6cc71

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/build.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,12 @@ jobs:
8989
uses: actions/cache/restore@v3
9090
with:
9191
path: packages/web3/dist/4.x.json
92-
key: web3-bundle-stats-4x-${{github.sha}}
92+
key: web3-bundle-stats-4x-${{github.event.pull_request.base.sha}}
9393
- run: yarn build:web:analyze
9494
env:
9595
STATS_FILE: ${{ github.ref_name }}.json
9696
- name: Compare bundle stats
97-
uses: github/webpack-bundlesize-compare-action@v1
98-
if: github.event_name != 'push'
97+
uses: github/webpack-bundlesize-compare-action@v1.8.2
9998
continue-on-error: true
10099
with:
101100
github-token: ${{ secrets.GITHUB_TOKEN }}
@@ -105,9 +104,10 @@ jobs:
105104
uses: actions/cache/save@v3
106105
if: github.event_name == 'push' && github.ref == 'refs/heads/4.x'
107106
with:
108-
path: packages/web3/dist/4.x.json
107+
path: packages/web3/dist/${{ github.ref_name }}.json
109108
key: web3-bundle-stats-4x-${{github.sha}}
110109

110+
111111
unit:
112112
name: Unit Tests
113113
needs: build

0 commit comments

Comments
 (0)