You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add a version-sync check (package.json vs docker/docs pins) #190
Versions have drifted: package.json says 1.9.16, the published npm headlesscode is 1.3.0, and downstream sidecar composes pin docker image headlesscode:0.1.0. docker/Dockerfile documents tagging images with the exact package.json version plus a floating latest, but nothing checks it, so drift is invisible until a consumer breaks.
Architecture (independent solution)
One checker script, wired as an npm script, that reads only this repo:
scripts/check-version-sync.mjs (mirror scripts/check-code-standards.mjs style): parse package.json version; assert docker/Dockerfile header/tag guidance and any in-repo image references (grep -rn "headlesscode:" --include="*.yml" --include="*.md" . excluding node_modules) either match it or are explicitly allow-listed as historical examples in the script with a comment.
npm run check-version runs it. It must pass on the current tree after the allow-list is written — the point is future drift, not a release.
Document the release step (tag = package.json version, per Dockerfile policy) in CONTRIBUTING.md or RELEASE_NOTES.md workflow — whichever already describes publishing; don't create a second release doc.
Scope / non-goals
No version bump, no npm publish, no docker build/push, no editing downstream repos.
Acceptance
npm run check-version passes now and fails when package.json version is temporarily bumped in a test fixture/copy.
In-repo stale pins are either updated or allow-listed with reasons.
Tests (happy / sad / bad)
Happy: current tree passes.
Sad: fixture with mismatched pin and no allow-list entry fails naming the file.
Bad: malformed semver in fixture fails with a clear message, not a stack.
Contributor notes
Good first issue. Pure Node script + docs; no network (npm view is not part of the check — published lag is expected between releases).
Activity
w4ffl35 commentedon Dec 5, 2026
Issue 190 — Closing Report
Files changed
Baseline (before)
Baseline (after)
Boot check
Residual risk / notes
PR: #202
Merge pull request #202 from Capsize-Games/issues/w13-2026-12-05