Skip to content

Commit 4e79b57

Browse files
committed
junk: REVERT ME
1 parent 72d3107 commit 4e79b57

3 files changed

Lines changed: 57 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,8 @@ jobs:
4242
cache: 'npm'
4343
cache-dependency-path: '**/package-lock.json'
4444

45-
- uses: preactjs/compressed-size-action@v2
45+
- name: Report Compressed Size
46+
uses: ./
47+
with:
48+
repo-token: '${{ secrets.GITHUB_TOKEN }}'
49+
pattern: '**/dist/**/*.{js,mjs,cjs}'

action.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: 'compressed-size-action'
2+
description: 'Get compressed size differences for every PR'
3+
author: 'Jason Miller'
4+
branding:
5+
icon: 'archive'
6+
color: 'purple'
7+
inputs:
8+
repo-token:
9+
description: 'The GITHUB_TOKEN secret'
10+
required: false
11+
default: ${{ github.token }}
12+
clean-script:
13+
description: 'An npm-script that cleans/resets state between branch builds'
14+
install-script:
15+
required: false
16+
description: 'Custom installation script to run to set up the dependencies in your project'
17+
build-script:
18+
description: 'The npm-script to run that builds your project'
19+
default: 'build'
20+
compression:
21+
description: 'The compression algorithm to use: "gzip" or "brotli"'
22+
show-total:
23+
description: 'Show total size and difference.'
24+
default: 'true'
25+
collapse-unchanged:
26+
description: 'Move unchanged files into a separate collapsed table'
27+
default: 'true'
28+
omit-unchanged:
29+
description: 'Exclude unchanged files from the sizes table entirely'
30+
strip-hash:
31+
description: 'A regular expression to remove hashes from filenames. Submatches are turned into asterisks if present, otherwise the whole match is removed.'
32+
use-check:
33+
description: 'Report status as a CI Check instead of using a comment [experimental]'
34+
minimum-change-threshold:
35+
description: 'Consider files with changes below this threshold as unchanged. Specified in bytes.'
36+
default: 1
37+
pattern:
38+
description: 'minimatch pattern of files to track'
39+
exclude:
40+
description: 'minimatch pattern of files NOT to track'
41+
cwd:
42+
description: 'A custom working directory to execute the action in relative to repo root (defaults to .)'
43+
comment-key:
44+
description: 'Optional key to include in the bot comment to allow for multiple bundle calculations to be posted in separate comments.'
45+
sort-by:
46+
description: 'The column and direction to sort the results by. The format is "column:direction", where column is one of "Filename", "Size", or "Change" and direction is "asc" or "desc". For example, "Size:desc" sorts the table by file size in descending order.'
47+
default: 'Filename:asc'
48+
49+
runs:
50+
using: 'node20'
51+
main: 'index.js'

index.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)