Skip to content

ci: add workflow to check dist/index.js is up to date#57

Merged
MathurAditya724 merged 5 commits intomainfrom
ci/check-dist-up-to-date
Mar 25, 2026
Merged

ci: add workflow to check dist/index.js is up to date#57
MathurAditya724 merged 5 commits intomainfrom
ci/check-dist-up-to-date

Conversation

@MathurAditya724
Copy link
Member

Summary

  • Adds a new check-dist CI workflow that rebuilds dist/index.js from source and fails if the committed version doesn't match
  • Ensures PRs cannot be merged with a stale dist/index.js

How it works

  1. Checks out the PR, installs deps, runs pnpm run build
  2. Compares the freshly built dist/index.js against the committed version using git diff
  3. If they differ, the check fails with an error message instructing the developer to run pnpm run build and commit the result
  4. Shows git diff --stat output so the developer can see exactly what changed

@github-actions
Copy link

github-actions bot commented Mar 25, 2026

Codecov Results 📊

179 passed | Total: 179 | Pass Rate: 100% | Execution Time: 259ms

📊 Comparison with Base Branch

Metric Change
Total Tests
Passed Tests
Failed Tests
Skipped Tests

✨ No test changes detected

All tests are passing successfully.

✅ Patch coverage is 100.00%. Project has 757 uncovered lines.
✅ Project coverage is 55.94%. Comparing base (base) to head (head).

Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
+ Coverage    55.94%    55.94%        —%
==========================================
  Files           24        24         —
  Lines         1713      1713         —
  Branches      1232      1232         —
==========================================
+ Hits           956       956         —
- Misses         757       757         —
- Partials        97        97         —

Generated by Codecov Action

@MathurAditya724 MathurAditya724 merged commit 1f384dd into main Mar 25, 2026
10 checks passed
@MathurAditya724 MathurAditya724 deleted the ci/check-dist-up-to-date branch March 25, 2026 08:37
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.

1 participant