-
Notifications
You must be signed in to change notification settings - Fork 108
feat!: allow to run any script for clean/install/build #126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
rschristian
merged 11 commits into
preactjs:v3
from
unrevised6419:feat/make-scripts-generic
Dec 6, 2025
Merged
Changes from 1 commit
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
9f51f38
feat!: allow to run any script for clean/install/build
unrevised6419 c9bea85
docs: change v2 to v3
unrevised6419 6fdbd95
chore: revert action.yml prettier changes
unrevised6419 a896bec
docs: add important note that scripts need to exist in both branches
unrevised6419 6e45d01
docs: fix configs in README
unrevised6419 96b57d4
chore: update microbundle to support Optional chaining
unrevised6419 3ed3436
feat: make install-script optional, some don't need it
unrevised6419 3f33f30
chore: run build
unrevised6419 f65affd
chore: revert all unrelated changes
unrevised6419 6a3ec92
fix: add logs back
unrevised6419 3966f55
fix: add the required inputs in action workflow
unrevised6419 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
unrevised6419 marked this conversation as resolved.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,51 +1,51 @@ | ||
| name: 'compressed-size-action' | ||
| description: 'Get compressed size differences for every PR' | ||
| author: 'Jason Miller' | ||
| name: "compressed-size-action" | ||
| description: "Get compressed size differences for every PR" | ||
| author: "Jason Miller" | ||
| branding: | ||
| icon: 'archive' | ||
| color: 'purple' | ||
| icon: "archive" | ||
| color: "purple" | ||
| inputs: | ||
| repo-token: | ||
| description: 'The GITHUB_TOKEN secret' | ||
| description: "The GITHUB_TOKEN secret" | ||
| required: false | ||
| default: ${{ github.token }} | ||
| clean-script: | ||
| description: 'An npm-script that cleans/resets state between branch builds' | ||
| description: "A script that cleans/resets state between branch builds" | ||
| install-script: | ||
| required: false | ||
|
rschristian marked this conversation as resolved.
|
||
| description: 'Custom installation script to run to set up the dependencies in your project' | ||
| required: true | ||
| description: "Custom installation script to run to set up the dependencies in your project" | ||
| build-script: | ||
| description: 'The npm-script to run that builds your project' | ||
| default: 'build' | ||
| required: true | ||
| description: "The script to run that builds your project" | ||
| compression: | ||
| description: 'The compression algorithm to use: "gzip" or "brotli"' | ||
| show-total: | ||
| description: 'Show total size and difference.' | ||
| default: 'true' | ||
| description: "Show total size and difference." | ||
| default: "true" | ||
| collapse-unchanged: | ||
| description: 'Move unchanged files into a separate collapsed table' | ||
| default: 'true' | ||
| description: "Move unchanged files into a separate collapsed table" | ||
| default: "true" | ||
| omit-unchanged: | ||
| description: 'Exclude unchanged files from the sizes table entirely' | ||
| description: "Exclude unchanged files from the sizes table entirely" | ||
| strip-hash: | ||
| description: 'A regular expression to remove hashes from filenames. Submatches are turned into asterisks if present, otherwise the whole match is removed.' | ||
| description: "A regular expression to remove hashes from filenames. Submatches are turned into asterisks if present, otherwise the whole match is removed." | ||
| use-check: | ||
| description: 'Report status as a CI Check instead of using a comment [experimental]' | ||
| description: "Report status as a CI Check instead of using a comment [experimental]" | ||
| minimum-change-threshold: | ||
| description: 'Consider files with changes below this threshold as unchanged. Specified in bytes.' | ||
| default: 1 | ||
| description: "Consider files with changes below this threshold as unchanged. Specified in bytes." | ||
| default: "1" | ||
| pattern: | ||
| description: 'minimatch pattern of files to track' | ||
| description: "minimatch pattern of files to track" | ||
| exclude: | ||
| description: 'minimatch pattern of files NOT to track' | ||
| description: "minimatch pattern of files NOT to track" | ||
| cwd: | ||
| description: 'A custom working directory to execute the action in relative to repo root (defaults to .)' | ||
| description: "A custom working directory to execute the action in relative to repo root (defaults to .)" | ||
| comment-key: | ||
| description: 'Optional key to include in the bot comment to allow for multiple bundle calculations to be posted in separate comments.' | ||
| description: "Optional key to include in the bot comment to allow for multiple bundle calculations to be posted in separate comments." | ||
| sort-by: | ||
| 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.' | ||
| default: 'Filename:asc' | ||
| default: "Filename:asc" | ||
|
|
||
| runs: | ||
| using: 'node20' | ||
| main: 'index.js' | ||
| using: "node20" | ||
| main: "index.js" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,13 @@ | ||
| { | ||
| "compilerOptions": { | ||
| "target": "ESNext", | ||
| "module": "ESNext", | ||
| "module": "nodenext", | ||
|
unrevised6419 marked this conversation as resolved.
Outdated
|
||
| "moduleResolution": "NodeNext", | ||
| "allowJs": true, | ||
| "checkJs": true, | ||
| "resolveJsonModule": true, | ||
| "noEmit": true | ||
| "noEmit": true, | ||
| "strict": true, | ||
| "useUnknownInCatchVariables": false | ||
|
unrevised6419 marked this conversation as resolved.
Outdated
|
||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.