Update react monorepo #7702
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Compressed Size | |
on: [pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- uses: preactjs/compressed-size-action@v2 | |
with: | |
build-script: 'build:compressed-size' | |
pattern: 'web/dist/**/*.{js,css,html,json,svg,png}' | |
# Strip hashes Webpack generates. 16 because hashDigestLength is 16. | |
strip-hash: '\.(\w{16})\.' | |
# Only report if more than 100 bytes changes | |
minimum-change-threshold: 100 |