Skip to content

Bump the webpack group across 1 directory with 3 updates #24126

Bump the webpack group across 1 directory with 3 updates

Bump the webpack group across 1 directory with 3 updates #24126

Workflow file for this run

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
- name: Set up Node environment
uses: ./.github/actions/setup-node-env
- 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'
env:
# preactjs/compressed-size-action compares the size of the dist files of the current branch vs main
# But it does not reset the node version between checkouts
# When the PR branch changes node versions check-node will fail as the node version wiil stil be
# the the one set by setup-node-env
# check-node still runs as part of other CI workflows
SKIP_CHECK_NODE: true
# preactjs/compressed-size-action does its own checkout, so we need to
# checkout the repo again so that the 'Post Run' step
# for ./.github/actions/setup-node-env can find the local file.
# It's a bit wierd but it doesn't take long.
- uses: actions/checkout@v4