From 65f120570df3551a2555f4ed2bb2f0e566427364 Mon Sep 17 00:00:00 2001 From: Dalton Lima Date: Mon, 16 Mar 2026 22:20:17 +0000 Subject: [PATCH 1/2] ci: warn when dist/ is out of date after build --- .github/workflows/test.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6fa16b18..6f739ca0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -31,6 +31,13 @@ jobs: - name: Build run: npm run all + - name: Check dist/ is up to date + run: | + if ! git diff --quiet dist/; then + echo "::warning::dist/ is out of date. Run 'npm run package' locally and commit the result." + git diff --stat dist/ + fi + test: name: Test runs-on: ubuntu-latest From 688ce4707d36b0aba05818081763e61e59b1a9ba Mon Sep 17 00:00:00 2001 From: Dalton Lima Date: Mon, 16 Mar 2026 23:38:47 +0000 Subject: [PATCH 2/2] ci: add step summary when dist/ is out of date --- .github/workflows/test.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6f739ca0..f0791f32 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,6 +36,12 @@ jobs: if ! git diff --quiet dist/; then echo "::warning::dist/ is out of date. Run 'npm run package' locally and commit the result." git diff --stat dist/ + echo "## dist/ is out of date" >> $GITHUB_STEP_SUMMARY + echo "Run \`npm run package\` locally and commit the result." >> $GITHUB_STEP_SUMMARY + echo "" >> $GITHUB_STEP_SUMMARY + echo "\`\`\`" >> $GITHUB_STEP_SUMMARY + git diff --stat dist/ >> $GITHUB_STEP_SUMMARY + echo "\`\`\`" >> $GITHUB_STEP_SUMMARY fi test: