diff --git a/.github/workflows/release-npm.yml b/.github/workflows/release-npm.yml index f16b1df..830dc67 100644 --- a/.github/workflows/release-npm.yml +++ b/.github/workflows/release-npm.yml @@ -243,13 +243,18 @@ jobs: node-version-file: .nvmrc registry-url: "https://registry.npmjs.org" - - name: Render and build the launcher + # Build first, then render. The committed package.json and lockfile leave out the six + # platform packages, because a lockfile can't pin a version that hasn't been published: + # it would hold the previous release's version and `npm ci` would refuse it. The build + # only needs TypeScript. The render then adds the platform packages at this release's + # version, just before `npm publish`. + - name: Build and render the launcher shell: bash working-directory: packaging/npm/si run: | - node ../scripts/render-main-package.cjs ./package.json "${RELEASE_VERSION}" npm ci npm run build + node ../scripts/render-main-package.cjs ./package.json "${RELEASE_VERSION}" - name: Check whether the package version already exists on npm id: npm-check diff --git a/Cargo.lock b/Cargo.lock index 7b89e06..bcfadb7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1581,7 +1581,7 @@ checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba" [[package]] name = "sigit-si-api" -version = "1.4.0" +version = "1.4.1" dependencies = [ "chrono", "reqwest", @@ -1593,7 +1593,7 @@ dependencies = [ [[package]] name = "sigit-si-cli" -version = "1.4.0" +version = "1.4.1" dependencies = [ "anyhow", "chrono", diff --git a/Cargo.toml b/Cargo.toml index 398c7f8..a4d61bd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ members = ["crates/cli", "crates/sigit-si-api"] # without pulling in clap, dialoguer, and the rest of the terminal surface. # `cli` is the thin `si` binary on top of it. [workspace.package] -version = "1.4.0" +version = "1.4.1" edition = "2021" authors = ["Seto Elkahfi "] license = "Apache-2.0" @@ -33,7 +33,7 @@ rmcp = { version = "3.2", features = [ schemars = "1" serde = { version = "1", features = ["derive"] } serde_json = "1" -sigit-si-api = { version = "1.4.0", path = "crates/sigit-si-api" } +sigit-si-api = { version = "1.4.1", path = "crates/sigit-si-api" } tabled = { version = "0.20", default-features = false, features = ["std"] } thiserror = "2.0" # `io-std` is what the MCP stdio transport binds to. diff --git a/packaging/claude-plugin/.claude-plugin/plugin.json b/packaging/claude-plugin/.claude-plugin/plugin.json index df29fbb..3fd654d 100644 --- a/packaging/claude-plugin/.claude-plugin/plugin.json +++ b/packaging/claude-plugin/.claude-plugin/plugin.json @@ -1,9 +1,9 @@ { - "name": "sigit", - "version": "1.4.0", + "name": "sigitsi", + "version": "1.4.1", "description": "Work with your siGit (sigit.si) repositories from Claude: browse and search code, read and open issues and pull requests, comment, and search the web.", "author": { - "name": "siGit", + "name": "siGit Si", "email": "privacy@sigit.si", "url": "https://sigit.si" }, diff --git a/packaging/npm/scripts/render-main-package.cjs b/packaging/npm/scripts/render-main-package.cjs index 5aa2c18..f95788a 100644 --- a/packaging/npm/scripts/render-main-package.cjs +++ b/packaging/npm/scripts/render-main-package.cjs @@ -10,7 +10,8 @@ if (!outputPath || !version) { } // The platform binary packages the launcher resolves at runtime. Kept in lockstep with the -// release-npm.yml build matrix. +// release-npm.yml build matrix. They are only added here, at publish time, and never to the +// committed package.json or its lockfile (see the "Build and render the launcher" step). const platformSuffixes = [ "darwin-arm64", "darwin-x64", diff --git a/packaging/npm/si/package-lock.json b/packaging/npm/si/package-lock.json index 9ee41e3..6e3761f 100644 --- a/packaging/npm/si/package-lock.json +++ b/packaging/npm/si/package-lock.json @@ -1,12 +1,12 @@ { "name": "@getsigit/si", - "version": "1.4.0", + "version": "1.4.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@getsigit/si", - "version": "1.4.0", + "version": "1.4.1", "license": "Apache-2.0", "bin": { "si": "lib/index.js" @@ -14,34 +14,8 @@ "devDependencies": { "@types/node": "^18.15.11", "typescript": "^5.0.0" - }, - "optionalDependencies": { - "@getsigit/si-darwin-arm64": "1.4.0", - "@getsigit/si-darwin-x64": "1.4.0", - "@getsigit/si-linux-arm64": "1.4.0", - "@getsigit/si-linux-x64": "1.4.0", - "@getsigit/si-windows-arm64": "1.4.0", - "@getsigit/si-windows-x64": "1.4.0" } }, - "node_modules/@getsigit/si-darwin-arm64": { - "optional": true - }, - "node_modules/@getsigit/si-darwin-x64": { - "optional": true - }, - "node_modules/@getsigit/si-linux-arm64": { - "optional": true - }, - "node_modules/@getsigit/si-linux-x64": { - "optional": true - }, - "node_modules/@getsigit/si-windows-arm64": { - "optional": true - }, - "node_modules/@getsigit/si-windows-x64": { - "optional": true - }, "node_modules/@types/node": { "version": "18.19.130", "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.130.tgz", diff --git a/packaging/npm/si/package.json b/packaging/npm/si/package.json index d232499..dbf2a8a 100644 --- a/packaging/npm/si/package.json +++ b/packaging/npm/si/package.json @@ -1,6 +1,6 @@ { "name": "@getsigit/si", - "version": "1.4.0", + "version": "1.4.1", "mcpName": "si.sigit/cli", "keywords": [ "sigit", @@ -32,13 +32,5 @@ "devDependencies": { "@types/node": "^18.15.11", "typescript": "^5.0.0" - }, - "optionalDependencies": { - "@getsigit/si-darwin-arm64": "1.4.0", - "@getsigit/si-darwin-x64": "1.4.0", - "@getsigit/si-linux-arm64": "1.4.0", - "@getsigit/si-linux-x64": "1.4.0", - "@getsigit/si-windows-arm64": "1.4.0", - "@getsigit/si-windows-x64": "1.4.0" } }