Skip to content

refactor: Move 'clean' script call to target branch#129

Merged
rschristian merged 1 commit intomasterfrom
refactor/clean-earlier
Dec 15, 2025
Merged

refactor: Move 'clean' script call to target branch#129
rschristian merged 1 commit intomasterfrom
refactor/clean-earlier

Conversation

@rschristian
Copy link
Copy Markdown
Member

@rschristian rschristian commented Dec 14, 2025

Relatively minor but improves DX and reduces headaches considerably, IMO.

The issue with running the clean script against the base branch, rather than target, is that it's always a PR behind; I can't add a new clean script in my package.json AND tell compressed-size to use it all in one go, as the new script will only exist on the target branch & NPM will error out when trying to run it on the base.

I think moving it up so that it's the last action ran against the target branch, instead of the first against the base, makes far more sense and makes it easier for users to make changes like this. Users will be able to edit their action config & scripts to keep them in-sync all at once.

@github-actions
Copy link
Copy Markdown

Size Change: 0 B

Total Size: 76 kB

ℹ️ View Unchanged
Filename Size
index.js 76 kB

compressed-size-action

@rschristian rschristian merged commit 213c234 into master Dec 15, 2025
2 checks passed
@rschristian rschristian deleted the refactor/clean-earlier branch December 15, 2025 05:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants