openwork-orchestrator-npm-publish
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseQuick usage (already configured)
快速使用(已配置完成)
- Ensure you are on the default branch and the tree is clean.
- Bump versions via the shared release bump (this keeps aligned with the app/desktop release).
openwork-orchestrator
bash
pnpm bump:patch- 确保当前处于默认分支,且工作树干净。
- 通过共享的版本升级工具更新版本号(这能让与应用/桌面端版本保持一致)。
openwork-orchestrator
bash
pnpm bump:patchor: 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"- Build openwork-orchestrator binaries for all supported platforms.
bash
pnpm --filter openwork-orchestrator build:bin:all- Publish as a meta package + platform packages (optionalDependencies).
openwork-orchestrator
bash
node packages/orchestrator/scripts/publish-npm.mjs- 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"- 为所有支持的平台构建openwork-orchestrator二进制文件。
bash
pnpm --filter openwork-orchestrator build:bin:all- 将作为元包 + 平台包(optionalDependencies)发布。
openwork-orchestrator
bash
node packages/orchestrator/scripts/publish-npm.mjs- 验证已发布的版本。
bash
npm view openwork-orchestrator versionScripted publish
脚本化发布
bash
./.opencode/skills/openwork-orchestrator-npm-publish/scripts/publish-openwork-orchestrator.shbash
./.opencode/skills/openwork-orchestrator-npm-publish/scripts/publish-openwork-orchestrator.shFirst-time setup (if not configured)
首次设置(若未配置)
Authenticate with npm before publishing.
bash
npm loginAlternatively, export an npm token in your environment (see ).
.env.example发布前先通过npm认证。
bash
npm login或者,在环境变量中导出npm令牌(参考)。
.env.exampleNotes
注意事项
- is published as:
openwork-orchestrator- (wrapper + optionalDependencies)
openwork-orchestrator - ,
openwork-orchestrator-darwin-arm64,openwork-orchestrator-darwin-x64,openwork-orchestrator-linux-arm64,openwork-orchestrator-linux-x64(platform binaries)openwork-orchestrator-windows-x64
- is versioned in lockstep with OpenWork app/desktop releases.
openwork-orchestrator - openwork-orchestrator downloads sidecars from release assets by default.
openwork-orchestrator-vX.Y.Z
- 的发布形式包括:
openwork-orchestrator- (包装器 + optionalDependencies)
openwork-orchestrator - 、
openwork-orchestrator-darwin-arm64、openwork-orchestrator-darwin-x64、openwork-orchestrator-linux-arm64、openwork-orchestrator-linux-x64(平台专属二进制文件)openwork-orchestrator-windows-x64
- 的版本与OpenWork应用/桌面端版本保持同步。
openwork-orchestrator - openwork-orchestrator默认从的发布资产中下载sidecars。
openwork-orchestrator-vX.Y.Z