Skip to content

armgit / dbx

Public Imported from GitHub
0

25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。

fix(release): preserve provenance for launcher packages

t8y284e834aab9ff
diff --git a/.github/workflows/mcp-release.yml b/.github/workflows/mcp-release.yml
index cca620dd57..b79b30076f 100644
--- a/.github/workflows/mcp-release.yml
+++ b/.github/workflows/mcp-release.yml
@@ -460,7 +460,7 @@ jobs:
echo "@dbx-app/cli@${VERSION} already exists on npm; skipping."
exit 0
fi
- pnpm --filter "@dbx-app/cli" publish --access public --provenance --no-git-checks
+ pnpm publish "./packages/cli" --access public --provenance --no-git-checks
publish-mcp-platforms:
name: Publish ${{ matrix.package-name }}
@@ -660,7 +660,7 @@ jobs:
echo "@dbx-app/mcp-server@${VERSION} already exists on npm; skipping."
exit 0
fi
- pnpm --filter "@dbx-app/mcp-server" publish --access public --provenance --no-git-checks
+ pnpm publish "./packages/mcp-server" --access public --provenance --no-git-checks
publish-mcp-github-release:
name: Publish MCP GitHub Release assets
diff --git a/scripts/release.test.mjs b/scripts/release.test.mjs
index d6ffd869a8..dfc982d138 100644
--- a/scripts/release.test.mjs
+++ b/scripts/release.test.mjs
@@ -7,6 +7,7 @@ import test from "node:test";
const repoRoot = new URL("..", import.meta.url).pathname;
const releaseScript = join(repoRoot, "scripts/release.mjs");
+const packagesWorkflow = join(repoRoot, ".github/workflows/mcp-release.yml");
function runRelease(args, env = {}) {
return spawnSync(process.execPath, [releaseScript, ...args], {
@@ -102,3 +103,11 @@ test("rollback rejects prerelease tag syntax", () => {
assert.equal(result.status, 1);
assert.match(result.stderr, /only supports stable vX\.Y\.Z app releases/);
});
+
+test("launcher packages bypass filtered publishing for provenance", () => {
+ const workflow = readFileSync(packagesWorkflow, "utf8");
+
+ assert.match(workflow, /pnpm publish "\.\/packages\/cli" --access public --provenance --no-git-checks/);
+ assert.match(workflow, /pnpm publish "\.\/packages\/mcp-server" --access public --provenance --no-git-checks/);
+ assert.doesNotMatch(workflow, /pnpm --filter "@dbx-app\/(?:cli|mcp-server)" publish/);
+});