From 68afe616937dbbbf1d3ea9f15af4a27bdf378412 Mon Sep 17 00:00:00 2001 From: t8y2 <1156263951@qq.com> Date: Sun, 13 Sep 2026 18:37:29 +0800 Subject: [PATCH] fix(plugin-cli): release version 0.1.2 --- .github/workflows/plugin-cli-release.yml | 4 ++-- .github/workflows/plugin-release-reusable.yml | 2 +- packages/plugin-cli-darwin-arm64/package.json | 2 +- packages/plugin-cli-darwin-x64/package.json | 2 +- packages/plugin-cli-linux-arm64-gnu/package.json | 2 +- packages/plugin-cli-linux-x64-gnu/package.json | 2 +- packages/plugin-cli-win32-arm64/package.json | 2 +- packages/plugin-cli-win32-x64/package.json | 2 +- packages/plugin-cli/package.json | 14 +++++++------- plugins/RELEASING.md | 2 +- plugins/sdk/cli/Cargo.lock | 2 +- plugins/sdk/cli/Cargo.toml | 2 +- plugins/sdk/cli/src/lib.rs | 2 +- .../cli/templates/common/github/plugin-release.yml | 2 +- .../templates/frontend/github/plugin-release.yml | 2 +- plugins/sdk/templates/github/plugin-release.yml | 2 +- pnpm-lock.yaml | 12 ++++++------ scripts/verify-plugin-cli-package.mjs | 2 +- 18 files changed, 30 insertions(+), 30 deletions(-) diff --git a/.github/workflows/plugin-cli-release.yml b/.github/workflows/plugin-cli-release.yml index b928ce8283..348a29ef13 100644 --- a/.github/workflows/plugin-cli-release.yml +++ b/.github/workflows/plugin-cli-release.yml @@ -7,9 +7,9 @@ on: workflow_dispatch: inputs: version: - description: "Plugin CLI version to publish, for example 0.1.1" + description: "Plugin CLI version to publish, for example 0.1.2" required: true - default: "0.1.1" + default: "0.1.2" npm-tag: description: "npm distribution tag" required: true diff --git a/.github/workflows/plugin-release-reusable.yml b/.github/workflows/plugin-release-reusable.yml index 547c8398fb..1f65f8ed7e 100644 --- a/.github/workflows/plugin-release-reusable.yml +++ b/.github/workflows/plugin-release-reusable.yml @@ -45,7 +45,7 @@ on: type: string plugin-cli-version: description: Published @dbx-app/plugin-cli version used to package the plugin - default: "0.1.1" + default: "0.1.2" required: false type: string install-plugin-cli: diff --git a/packages/plugin-cli-darwin-arm64/package.json b/packages/plugin-cli-darwin-arm64/package.json index 34a3ff5cc0..5d499a38b3 100644 --- a/packages/plugin-cli-darwin-arm64/package.json +++ b/packages/plugin-cli-darwin-arm64/package.json @@ -1,6 +1,6 @@ { "name": "@dbx-app/plugin-cli-darwin-arm64", - "version": "0.1.1", + "version": "0.1.2", "description": "Precompiled DBX Plugin CLI binary for darwin arm64", "license": "Apache-2.0", "repository": { diff --git a/packages/plugin-cli-darwin-x64/package.json b/packages/plugin-cli-darwin-x64/package.json index 7daf28262b..c4ad4984f3 100644 --- a/packages/plugin-cli-darwin-x64/package.json +++ b/packages/plugin-cli-darwin-x64/package.json @@ -1,6 +1,6 @@ { "name": "@dbx-app/plugin-cli-darwin-x64", - "version": "0.1.1", + "version": "0.1.2", "description": "Precompiled DBX Plugin CLI binary for darwin x64", "license": "Apache-2.0", "repository": { diff --git a/packages/plugin-cli-linux-arm64-gnu/package.json b/packages/plugin-cli-linux-arm64-gnu/package.json index be6220c699..fa7e178cb4 100644 --- a/packages/plugin-cli-linux-arm64-gnu/package.json +++ b/packages/plugin-cli-linux-arm64-gnu/package.json @@ -1,6 +1,6 @@ { "name": "@dbx-app/plugin-cli-linux-arm64-gnu", - "version": "0.1.1", + "version": "0.1.2", "description": "Precompiled DBX Plugin CLI binary for linux arm64", "license": "Apache-2.0", "repository": { diff --git a/packages/plugin-cli-linux-x64-gnu/package.json b/packages/plugin-cli-linux-x64-gnu/package.json index 3fe4702f34..c083883fd9 100644 --- a/packages/plugin-cli-linux-x64-gnu/package.json +++ b/packages/plugin-cli-linux-x64-gnu/package.json @@ -1,6 +1,6 @@ { "name": "@dbx-app/plugin-cli-linux-x64-gnu", - "version": "0.1.1", + "version": "0.1.2", "description": "Precompiled DBX Plugin CLI binary for linux x64", "license": "Apache-2.0", "repository": { diff --git a/packages/plugin-cli-win32-arm64/package.json b/packages/plugin-cli-win32-arm64/package.json index 96c686bdb4..3516e39c25 100644 --- a/packages/plugin-cli-win32-arm64/package.json +++ b/packages/plugin-cli-win32-arm64/package.json @@ -1,6 +1,6 @@ { "name": "@dbx-app/plugin-cli-win32-arm64", - "version": "0.1.1", + "version": "0.1.2", "description": "Precompiled DBX Plugin CLI binary for win32 arm64", "license": "Apache-2.0", "repository": { diff --git a/packages/plugin-cli-win32-x64/package.json b/packages/plugin-cli-win32-x64/package.json index 8e31f66309..65a26812d1 100644 --- a/packages/plugin-cli-win32-x64/package.json +++ b/packages/plugin-cli-win32-x64/package.json @@ -1,6 +1,6 @@ { "name": "@dbx-app/plugin-cli-win32-x64", - "version": "0.1.1", + "version": "0.1.2", "description": "Precompiled DBX Plugin CLI binary for win32 x64", "license": "Apache-2.0", "repository": { diff --git a/packages/plugin-cli/package.json b/packages/plugin-cli/package.json index 5ee5ca107b..39feaf9474 100644 --- a/packages/plugin-cli/package.json +++ b/packages/plugin-cli/package.json @@ -1,6 +1,6 @@ { "name": "@dbx-app/plugin-cli", - "version": "0.1.1", + "version": "0.1.2", "description": "Create and package DBX plugins without compiling the DBX plugin CLI", "keywords": [ "cli", @@ -34,12 +34,12 @@ "prepublishOnly": "npm run build && npm test" }, "optionalDependencies": { - "@dbx-app/plugin-cli-darwin-arm64": "0.1.1", - "@dbx-app/plugin-cli-darwin-x64": "0.1.1", - "@dbx-app/plugin-cli-linux-arm64-gnu": "0.1.1", - "@dbx-app/plugin-cli-linux-x64-gnu": "0.1.1", - "@dbx-app/plugin-cli-win32-arm64": "0.1.1", - "@dbx-app/plugin-cli-win32-x64": "0.1.1" + "@dbx-app/plugin-cli-darwin-arm64": "0.1.2", + "@dbx-app/plugin-cli-darwin-x64": "0.1.2", + "@dbx-app/plugin-cli-linux-arm64-gnu": "0.1.2", + "@dbx-app/plugin-cli-linux-x64-gnu": "0.1.2", + "@dbx-app/plugin-cli-win32-arm64": "0.1.2", + "@dbx-app/plugin-cli-win32-x64": "0.1.2" }, "engines": { "node": ">=18.18.0" diff --git a/plugins/RELEASING.md b/plugins/RELEASING.md index 0b11a3aa50..5b6fd8073f 100644 --- a/plugins/RELEASING.md +++ b/plugins/RELEASING.md @@ -65,7 +65,7 @@ Human review decides whether a plugin is allowed in the official catalog. SHA-25 Install the precompiled CLI and run `dbx-plugin create --template frontend|rust|go` for a complete project, or copy `sdk/templates/github/plugin-release.yml`: ```bash -npm install --global @dbx-app/plugin-cli@0.1.0 +npm install --global @dbx-app/plugin-cli@0.1.2 ``` Pin both the reusable workflow reference and `plugin-cli-version`. The npm package contains the matching CLI binary, packager, and Rust/Go SDK sources. Building the CLI from a DBX checkout is reserved for SDK development and can be enabled with `install-plugin-cli-from-source: true` plus a reviewed `sdk-ref`. diff --git a/plugins/sdk/cli/Cargo.lock b/plugins/sdk/cli/Cargo.lock index 8879f64f7b..61d618e11f 100644 --- a/plugins/sdk/cli/Cargo.lock +++ b/plugins/sdk/cli/Cargo.lock @@ -119,7 +119,7 @@ dependencies = [ [[package]] name = "dbx-plugin-cli" -version = "0.1.1" +version = "0.1.2" dependencies = [ "dbx-plugin-packager", "semver", diff --git a/plugins/sdk/cli/Cargo.toml b/plugins/sdk/cli/Cargo.toml index 37752a4d51..49720a263c 100644 --- a/plugins/sdk/cli/Cargo.toml +++ b/plugins/sdk/cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dbx-plugin-cli" -version = "0.1.1" +version = "0.1.2" edition = "2021" license = "Apache-2.0" description = "Scaffold and package DBX plugins" diff --git a/plugins/sdk/cli/src/lib.rs b/plugins/sdk/cli/src/lib.rs index c6444f1cc5..d7c7c6c021 100644 --- a/plugins/sdk/cli/src/lib.rs +++ b/plugins/sdk/cli/src/lib.rs @@ -1838,7 +1838,7 @@ mod tests { let workflow = std::fs::read_to_string(directory.join(".github/workflows/plugin-release.yml")).unwrap(); assert!(!workflow.contains("signing-key-id")); assert!(!workflow.contains("DBX_PLUGIN_SIGNING_KEY")); - assert!(workflow.contains("plugin-cli-version: 0.1.1")); + assert!(workflow.contains("plugin-cli-version: 0.1.2")); assert!(!workflow.contains("sdk-ref:")); match template { diff --git a/plugins/sdk/cli/templates/common/github/plugin-release.yml b/plugins/sdk/cli/templates/common/github/plugin-release.yml index a07ef3c358..e56c1553d1 100644 --- a/plugins/sdk/cli/templates/common/github/plugin-release.yml +++ b/plugins/sdk/cli/templates/common/github/plugin-release.yml @@ -15,4 +15,4 @@ jobs: package-command: dbx-plugin package . package-path: dist/*.dbxp metadata-path: dist/*.artifact.json - plugin-cli-version: 0.1.1 + plugin-cli-version: 0.1.2 diff --git a/plugins/sdk/cli/templates/frontend/github/plugin-release.yml b/plugins/sdk/cli/templates/frontend/github/plugin-release.yml index 5b6b47d1d3..fee5b14db9 100644 --- a/plugins/sdk/cli/templates/frontend/github/plugin-release.yml +++ b/plugins/sdk/cli/templates/frontend/github/plugin-release.yml @@ -15,5 +15,5 @@ jobs: package-command: dbx-plugin package . package-path: dist/*.dbxp metadata-path: dist/*.artifact.json - plugin-cli-version: 0.1.1 + plugin-cli-version: 0.1.2 build-matrix: '{"include":[{"runner":"ubuntu-24.04","target":"universal"}]}' diff --git a/plugins/sdk/templates/github/plugin-release.yml b/plugins/sdk/templates/github/plugin-release.yml index 2cb96e8691..22894f56f6 100644 --- a/plugins/sdk/templates/github/plugin-release.yml +++ b/plugins/sdk/templates/github/plugin-release.yml @@ -15,6 +15,6 @@ jobs: package-command: dbx-plugin package . package-path: dist/*.dbxp metadata-path: dist/*.artifact.json - plugin-cli-version: 0.1.0 + plugin-cli-version: 0.1.2 # Frontend-only plugins can publish one cross-platform package instead: # build-matrix: '{"include":[{"runner":"ubuntu-24.04","target":"universal"}]}' diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index bd1ea52adb..5fc0e02793 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -356,22 +356,22 @@ importers: packages/plugin-cli: optionalDependencies: '@dbx-app/plugin-cli-darwin-arm64': - specifier: 0.1.1 + specifier: 0.1.2 version: link:../plugin-cli-darwin-arm64 '@dbx-app/plugin-cli-darwin-x64': - specifier: 0.1.1 + specifier: 0.1.2 version: link:../plugin-cli-darwin-x64 '@dbx-app/plugin-cli-linux-arm64-gnu': - specifier: 0.1.1 + specifier: 0.1.2 version: link:../plugin-cli-linux-arm64-gnu '@dbx-app/plugin-cli-linux-x64-gnu': - specifier: 0.1.1 + specifier: 0.1.2 version: link:../plugin-cli-linux-x64-gnu '@dbx-app/plugin-cli-win32-arm64': - specifier: 0.1.1 + specifier: 0.1.2 version: link:../plugin-cli-win32-arm64 '@dbx-app/plugin-cli-win32-x64': - specifier: 0.1.1 + specifier: 0.1.2 version: link:../plugin-cli-win32-x64 packages/plugin-cli-darwin-arm64: {} diff --git a/scripts/verify-plugin-cli-package.mjs b/scripts/verify-plugin-cli-package.mjs index 7523d48c40..686933e8b2 100644 --- a/scripts/verify-plugin-cli-package.mjs +++ b/scripts/verify-plugin-cli-package.mjs @@ -81,7 +81,7 @@ try { process.platform === "win32" ? "dbx-plugin.cmd" : "dbx-plugin", ); const version = run(command, ["--version"], { cwd: installDirectory, capture: true }); - if (!version.stdout.includes("dbx-plugin 0.1.1")) { + if (!version.stdout.includes("dbx-plugin 0.1.2")) { throw new Error(`Unexpected installed CLI version output: ${version.stdout.trim()}`); }