Skip to content

ci(release): version-sync check + auto GitHub Release on tag push (DEV-80) - #14

Merged
developjik merged 4 commits into
mainfrom
devin/1795398226-version-sync-release
Nov 23, 2026
Merged

developjik merged 4 commits into
mainfrom
devin/1795398226-version-sync-release

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Formalizes the "3-way version sync" convention so the 0.5.0 incident (package.json bumped, server.json left at 0.4.0 → MCP registry rejected the publish) can't recur, and makes tag pushes create the GitHub Release automatically.

scripts/check-version-sync.mjs (no deps) fails unless all of these equal package.json version:

  • server.json version
  • server.json packages[npm @developjik/sqlite-graph-mcp].version
  • newest ## x.y.z heading in CHANGELOG.md
  • --tag vX.Y.Z (optional) → must be v<version>

--notes-out <file> writes that version's CHANGELOG section (used as the Release body).

Wired in at:

  • ci.yml: new version sync job (every PR / main push)
  • publish-mcp.yml: checks versions match the tag before publishing to the registry
  • release.yml (new): on v* tag push → version check vs tag → softprops/action-gh-release (SHA-pinned v2.6.2) with the CHANGELOG section as body, make_latest: true
  • package.json: npm run check:versions, also run first in prepublishOnly (npm publish runs from a maintainer machine)

Also fixes server.json packages[0].version 0.4.0 → 0.5.0. f525786 bumped only the top-level version, so the registry's live 0.5.0 entry still points to npm 0.4.0 (registry.modelcontextprotocol.io currently returns 0.5.0 → packages 0.4.0, isLatest). Registry entries can't be republished at the same version, so that entry is only corrected by the next release.

Tests: test/version-sync.test.ts covers each mismatch source, tag mismatch, notes extraction, and the repo itself.

Link to Devin session: https://app.devin.ai/sessions/5f33d9960f324b50850dfc817ff99c0a
Open in Devin Desktop: https://app.devin.ai/desktop/session/5f33d9960f324b50850dfc817ff99c0a?variant=devin


🟢 Devin Review found nothing to fix · View findings · Follow Devin's work

Devin Review

…V-80)

Co-Authored-By: 정인권 <developjik@gmail.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

devin-ai-integration Bot and others added 2 commits November 23, 2026 01:46
Co-Authored-By: 정인권 <developjik@gmail.com>
Co-Authored-By: 정인권 <developjik@gmail.com>

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 2 findings. Devin automatically fixed all 2 findings.

Fixed by Devin (2)
  • Bare tags pass direct validation — --tag now must equal v exactly; bare tag test added.
  • Version tests leave temporary fixtures — Uses helpers.tempDir and removes dirs in afterEach, matching diff.test.ts.

View findings in Devin Review · Follow Devin's work

Devin Review

Co-Authored-By: 정인권 <developjik@gmail.com>
@developjik
developjik merged commit dec04ef into main Nov 23, 2026
5 checks passed
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