From 8a8510e3a0d8dfc9296171fd405ca8c8ea6206a4 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Sun, 15 Mar 2026 13:45:27 -0400 Subject: [PATCH] ci: verify dist bundle freshness (#762) Signed-off-by: Rui Chen --- .github/workflows/main.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9b6b5a1..0ca5d47 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,14 +19,12 @@ jobs: run: npm ci - name: Build run: npm run build + - name: Check dist freshness + run: | + git diff --exit-code --stat -- dist/index.js \ + || (echo "##[error] found changed dist/index.js after build. please run 'npm run build' and commit the updated bundle" \ + && exit 1) - name: Test run: npm run test - name: Format run: npm run fmtcheck - # - name: "check for uncommitted changes" - # # Ensure no changes, but ignore node_modules dir since dev/fresh ci deps installed. - # run: | - # git diff --exit-code --stat -- . ':!node_modules' \ - # || (echo "##[error] found changed files after build. please 'npm run build && npm run fmt'" \ - # "and check in all changes" \ - # && exit 1)