openwork-orchestrator-npm-publish

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Quick usage (already configured)

快速使用(已配置完成)

  1. Ensure you are on the default branch and the tree is clean.
  2. Bump versions via the shared release bump (this keeps
    openwork-orchestrator
    aligned with the app/desktop release).
bash
pnpm bump:patch
  1. 确保当前处于默认分支,且工作树干净。
  2. 通过共享的版本升级工具更新版本号(这能让
    openwork-orchestrator
    与应用/桌面端版本保持一致)。
bash
pnpm bump:patch

or: pnpm bump:minor

or: pnpm bump:minor

or: pnpm bump:major

or: pnpm bump:major

or: pnpm bump:set -- X.Y.Z

or: pnpm bump:set -- X.Y.Z


3. Commit the bump.
4. Preferred: publish via the "Release App" GitHub Actions workflow by tagging `vX.Y.Z`.

Manual recovery path (sidecars + npm) below.

```bash
pnpm --filter openwork-orchestrator build:sidecars
gh release create openwork-orchestrator-vX.Y.Z packages/orchestrator/dist/sidecars/* \
  --repo different-ai/openwork \
  --title "openwork-orchestrator vX.Y.Z sidecars" \
  --notes "Sidecar binaries and manifest for openwork-orchestrator vX.Y.Z"
  1. Build openwork-orchestrator binaries for all supported platforms.
bash
pnpm --filter openwork-orchestrator build:bin:all
  1. Publish
    openwork-orchestrator
    as a meta package + platform packages (optionalDependencies).
bash
node packages/orchestrator/scripts/publish-npm.mjs
  1. Verify the published version.
bash
npm view openwork-orchestrator version


3. 提交版本升级的更改。
4. 推荐方式:通过GitHub Actions的「Release App」工作流,打标签`vX.Y.Z`来完成发布。

以下是手动恢复流程(sidecars + npm)。

```bash
pnpm --filter openwork-orchestrator build:sidecars
gh release create openwork-orchestrator-vX.Y.Z packages/orchestrator/dist/sidecars/* \
  --repo different-ai/openwork \
  --title "openwork-orchestrator vX.Y.Z sidecars" \
  --notes "Sidecar binaries and manifest for openwork-orchestrator vX.Y.Z"
  1. 为所有支持的平台构建openwork-orchestrator二进制文件。
bash
pnpm --filter openwork-orchestrator build:bin:all
  1. openwork-orchestrator
    作为元包 + 平台包(optionalDependencies)发布。
bash
node packages/orchestrator/scripts/publish-npm.mjs
  1. 验证已发布的版本。
bash
npm view openwork-orchestrator version

Scripted publish

脚本化发布

bash
./.opencode/skills/openwork-orchestrator-npm-publish/scripts/publish-openwork-orchestrator.sh

bash
./.opencode/skills/openwork-orchestrator-npm-publish/scripts/publish-openwork-orchestrator.sh

First-time setup (if not configured)

首次设置(若未配置)

Authenticate with npm before publishing.
bash
npm login
Alternatively, export an npm token in your environment (see
.env.example
).

发布前先通过npm认证。
bash
npm login
或者,在环境变量中导出npm令牌(参考
.env.example
)。

Notes

注意事项

  • openwork-orchestrator
    is published as:
    • openwork-orchestrator
      (wrapper + optionalDependencies)
    • openwork-orchestrator-darwin-arm64
      ,
      openwork-orchestrator-darwin-x64
      ,
      openwork-orchestrator-linux-arm64
      ,
      openwork-orchestrator-linux-x64
      ,
      openwork-orchestrator-windows-x64
      (platform binaries)
  • openwork-orchestrator
    is versioned in lockstep with OpenWork app/desktop releases.
  • openwork-orchestrator downloads sidecars from
    openwork-orchestrator-vX.Y.Z
    release assets by default.
  • openwork-orchestrator
    的发布形式包括:
    • openwork-orchestrator
      (包装器 + optionalDependencies)
    • openwork-orchestrator-darwin-arm64
      openwork-orchestrator-darwin-x64
      openwork-orchestrator-linux-arm64
      openwork-orchestrator-linux-x64
      openwork-orchestrator-windows-x64
      (平台专属二进制文件)
  • openwork-orchestrator
    的版本与OpenWork应用/桌面端版本保持同步。
  • openwork-orchestrator默认从
    openwork-orchestrator-vX.Y.Z
    的发布资产中下载sidecars。