Skip to content

Commit 5bdd263

Browse files
Your Nameclaude
andcommitted
fix(release): stamp crate version from git tag, bump to 0.1.1
`ci --version` reported the workspace's checked-in Cargo.toml version rather than the release tag it shipped in (v0.1.0's binary still said 0.1.0, and would have kept saying 0.1.0 forever without a manual bump). release.yml now sed's the workspace version from GITHUB_REF_NAME before building, so every future tag is self-consistent. Bumped the checked-in version to 0.1.1 to match the tag already cut for this fix. npm/*/package.json versions bumped by npm/stage-release.sh v0.1.1. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
1 parent a760bcf commit 5bdd263

7 files changed

Lines changed: 18 additions & 11 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ jobs:
3737
with:
3838
key: ${{ matrix.target }}
3939

40+
# Workspace version defaults to whatever was last committed to
41+
# Cargo.toml, which drifts from the release tag if nobody remembers to
42+
# bump it by hand — stamp it from the tag so `ci --version` always
43+
# matches the artifact it shipped in.
44+
- name: Set crate version from tag
45+
run: sed -i "s/^version = \".*\"/version = \"${GITHUB_REF_NAME#v}\"/" Cargo.toml
46+
4047
# `cross` runs the build in a container that already has the C
4148
# cross-toolchain tree-sitter / stack-graphs / rusqlite need.
4249
- name: Install cross

Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ members = [
77
]
88

99
[workspace.package]
10-
version = "0.1.0"
10+
version = "0.1.1"
1111
edition = "2024"
1212
license = "MIT"
1313
rust-version = "1.85"

npm/ci-mcp-darwin-arm64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@eilodon/ci-mcp-darwin-arm64",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "Prebuilt ci (Code Intelligence) binary for darwin-arm64 (Apple Silicon) — platform package for @eilodon/ci-mcp, not meant to be installed directly",
55
"license": "MIT",
66
"repository": {

npm/ci-mcp-linux-arm64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@eilodon/ci-mcp-linux-arm64",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "Prebuilt ci (Code Intelligence) binary for linux-arm64 — platform package for @eilodon/ci-mcp, not meant to be installed directly",
55
"license": "MIT",
66
"repository": {

npm/ci-mcp-linux-x64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@eilodon/ci-mcp-linux-x64",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "Prebuilt ci (Code Intelligence) binary for linux-x64 — platform package for @eilodon/ci-mcp, not meant to be installed directly",
55
"license": "MIT",
66
"repository": {

npm/ci-mcp/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@eilodon/ci-mcp",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "Code Intelligence — MCP server for codebase analysis (Rust binary, no toolchain required to run it)",
55
"license": "MIT",
66
"homepage": "https://github.com/Eilodon/Code-Intelligence",
@@ -18,8 +18,8 @@
1818
"node": ">=16"
1919
},
2020
"optionalDependencies": {
21-
"@eilodon/ci-mcp-linux-x64": "0.1.0",
22-
"@eilodon/ci-mcp-linux-arm64": "0.1.0",
23-
"@eilodon/ci-mcp-darwin-arm64": "0.1.0"
21+
"@eilodon/ci-mcp-linux-x64": "0.1.1",
22+
"@eilodon/ci-mcp-linux-arm64": "0.1.1",
23+
"@eilodon/ci-mcp-darwin-arm64": "0.1.1"
2424
}
2525
}

0 commit comments

Comments
 (0)