-
Notifications
You must be signed in to change notification settings - Fork 30
43 lines (33 loc) · 1.25 KB
/
compress.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: DCR Compressed Size
permissions:
contents: read
pull-requests: write
on:
pull_request:
paths-ignore:
- 'apps-rendering/**'
- 'dotcom-rendering/docs/**'
jobs:
compressed_size:
name: DCR Compressed Size
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- uses: preactjs/compressed-size-action@v2
with:
repo-token: '${{ secrets.GITHUB_TOKEN }}'
build-script: build:dcr
# https://github.com/preactjs/compressed-size-action#increasing-the-required-threshold
minimum-change-threshold: 100
# https://github.com/preactjs/compressed-size-action#dealing-with-hashed-filenames
# The default hash digest is set to 20 chars in Webpack
strip-hash: "\\.(\\w{20})\\.js$"
# report exclusively on the “web” bundle – no “apps”, “variant” or other
# https://github.com/preactjs/compressed-size-action#customizing-the-list-of-files
# The default hash digest is set to 20 chars in Webpack
pattern: 'dotcom-rendering/dist/*.web.????????????????????.js'