From 9cb742278d59a7d9c5a2b9b2193d2763d76eb94e Mon Sep 17 00:00:00 2001 From: Rudy Fraser Date: Wed, 11 Nov 2026 10:05:25 -0500 Subject: [PATCH] chore(ci): clean files the PR added before building the base bundle The bundle size job falls back to building the base commit in place when no cached size exists. Files the pull request added stayed behind untracked, and a new platform-specific module shadowed the base's own. --- .github/workflows/pull-request-commit.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/pull-request-commit.yml b/.github/workflows/pull-request-commit.yml index a589014d9..70cd4d12b 100644 --- a/.github/workflows/pull-request-commit.yml +++ b/.github/workflows/pull-request-commit.yml @@ -146,6 +146,9 @@ jobs: run: | git reset "$BASE_COMMIT" git restore . + # Files the PR added are left behind untracked by the reset, and a + # platform-specific one (`*.web.ts`) would shadow the base's module. + git clean -fd # Measure both builds with the PR's script, even when the base # predates support for gzip measurements. cp "$RUNNER_TEMP/measure-web-bundle.js" scripts/measure-web-bundle.js -- knotmirror 0.0.1