You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat!: allow to run any script for clean/install/build (#126)
* feat!: allow to run any script for clean/install/build
* docs: change v2 to v3
* chore: revert action.yml prettier changes
* docs: add important note that scripts need to exist in both branches
* docs: fix configs in README
* chore: update microbundle to support Optional chaining
* feat: make install-script optional, some don't need it
* chore: run build
* chore: revert all unrelated changes
* fix: add logs back
* fix: add the required inputs in action workflow
Copy file name to clipboardExpand all lines: README.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,6 @@
2
2
3
3
A GitHub action that reports changes in compressed file sizes on your PRs.
4
4
5
-
- Automatically uses `yarn`, `pnpm`, `bun`, `deno`, or `npm ci` when lockfiles are present
6
5
- Builds your PR, then builds the target and compares between the two
7
6
- Doesn't upload anything or rely on centralized storage
8
7
- Supports [custom build scripts](#customizing-the-build) and [file patterns](#customizing-the-list-of-files)
@@ -27,6 +26,10 @@ jobs:
27
26
steps:
28
27
- uses: actions/checkout@v2
29
28
- uses: preactjs/compressed-size-action@v2
29
+
with:
30
+
install-script: npm ci
31
+
build-script: npm run build
32
+
clean-script: npm run clean
30
33
```
31
34
32
35
> **Note:** Due to GitHub's permission model, this action cannot safely create comments when it is triggered by a PR from a fork. It will, however, still generate the size comparison and print the comment it would've posted to the stdout of the action, allowing manual checking and you can copy/paste it into a comment if you wish.
0 commit comments