Repository navigation
ci(release): version-sync check + auto GitHub Release on tag push (DEV-80) - #14
Merged
Merged
Conversation
…V-80) Co-Authored-By: 정인권 <developjik@gmail.com>
Contributor
Author
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
Co-Authored-By: 정인권 <developjik@gmail.com>
Co-Authored-By: 정인권 <developjik@gmail.com>
Contributor
Author
There was a problem hiding this comment.
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.
Co-Authored-By: 정인권 <developjik@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 equalpackage.jsonversion:server.jsonversionserver.jsonpackages[npm @developjik/sqlite-graph-mcp].version## x.y.zheading inCHANGELOG.md--tag vX.Y.Z(optional) → must bev<version>--notes-out <file>writes that version's CHANGELOG section (used as the Release body).Wired in at:
ci.yml: newversion syncjob (every PR / main push)publish-mcp.yml: checks versions match the tag before publishing to the registryrelease.yml(new): onv*tag push → version check vs tag →softprops/action-gh-release(SHA-pinned v2.6.2) with the CHANGELOG section as body,make_latest: truepackage.json:npm run check:versions, also run first inprepublishOnly(npm publish runs from a maintainer machine)Also fixes
server.jsonpackages[0].version0.4.0 → 0.5.0. f525786 bumped only the top-levelversion, so the registry's live 0.5.0 entry still points to npm0.4.0(registry.modelcontextprotocol.iocurrently returns0.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.tscovers 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