Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.
C aiderastclaude-codecode-analysiscode-intelligencecodexcursorcypherdeveloper-toolsgemini-cligraph-visualizationkilocodeknowledge-graphmcpmcp-servermodel-context-protocolopencodesqlitetree-sitterwindsurf
Inject the release version into npm/PyPI packaging at publish time
Martin Vogel3bbb6bb07356
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 9c19e0246..bec2ac6b9 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -273,6 +273,24 @@ jobs:steps:- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3+ # The packaged versions MUST match the dispatched release version —+ # the 0.8.0 release failed here because pkg/npm still carried the+ # previous release's hand-pinned version and npm refuses to publish+ # over an existing version. Inject the dispatch input so a forgotten+ # manual bump can never fail the pipeline again. (server.json needs+ # no injection: publish-mcp-registry syncs it from pkg/npm.)+ - name: Sync packaging versions to the release version+ env:+ RELEASE_VERSION: ${{ inputs.version }}+ run: |+ V="${RELEASE_VERSION#v}"+ jq --arg v "$V" '.version = $v' pkg/npm/package.json > pkg/npm/package.tmp+ mv pkg/npm/package.tmp pkg/npm/package.json+ sed -i "s/^version = \".*\"/version = \"$V\"/" pkg/pypi/pyproject.toml+ grep -q "\"version\": \"$V\"" pkg/npm/package.json+ grep -q "^version = \"$V\"" pkg/pypi/pyproject.toml+ echo "packaging synced to $V"+# ── npm ──────────────────────────────────────────────────- name: Setup Nodeuses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0