tristanbudd/Minified Branch Builder
Minifies CSS & JS and pushes them to a dedicated production branch, rewriting asset links.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| github_token | GitHub token for pushing the new branch | yes | ${{ github.token }} |
| target_branch | The branch to push minified code to | no | production |
| source_dir | The root directory to scan for CSS/JS | no | . |
| commit_message | Commit message for the minified branch | no | chore: automated asset minification |
| minify_css | Enable CSS minification (true/false) | no | true |
| minify_js | Enable JavaScript minification (true/false) | no | true |
| exclude_dirs | Comma-separated list of directories to ignore | no | node_modules,.git,dist |
| dry_run | Run without committing or pushing | no | false |
| force_push | Force push to the target branch | no | true |
| keep_original_file | Keep the original unminified file | no | false |
| generate_backup_file | Generate a .backup file for the original asset | no | true |
| hash_files | Append a content hash to minified filenames (e.g., style.abcdef12.min.css) | no | false |
Outputs
no outputs