woocommerce/plugins/woocommerce-blocks/.github/workflows/bundle-size.yml

20 lines
502 B
YAML
Raw Normal View History

name: Bundle Size
on: [pull_request]
jobs:
build-and-size:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v2-beta
with:
node-version: '12'
- uses: actions/checkout@v2
with:
fetch-depth: 1
- uses: preactjs/compressed-size-action@v2
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
pattern: "{build/**/*.js,build/**/*.css}"