ci(OpenVSX): 重启双市场发布——publish job 增回 Open VSX 步骤 - #119
Merged
ThreeFish-AI merged 2 commits intoSep 9, 2026
Conversation
- devDependencies 增 ovsx@^1.1.1(pnpm exec 项目锁定版本,传递依赖 @vscode/vsce 构建脚本已在 allowBuilds 审批); - 与 vsce 同款模式:复用 package job 同一枚 VSIX、共享 production 审批门、OVSX_PAT 环境变量传凭证; - 不传 --pre-release:ovsx 对已打包 VSIX 会忽略该 flag,预发布语义已内嵌于 vsce package --pre-release 的 VSIX 元数据。 🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist) Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com>
- README Install 章节加回 Open VSX 渠道(覆盖 Cursor / Windsurf / VSCodium 等 Open VSX 系编辑器); - 调研文档追加 2026-09-10 决策更新,§2.3 由「单市场」再次修订为「双市场」,保留完整决策沿革; - docs 索引行与 CHANGELOG Unreleased 同步记录。 🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist) Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com>
This was referenced Sep 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述
重启 Open VSX 发布渠道:
publishjob 增回 Open VSX 发布步骤,与既有 VS Code Marketplace(vsce)发布保持一致(同 job、同审批门、同门控模式、复用同一枚 VSIX)。README 安装渠道与调研文档决策链同步更新。背景与决策沿革
OVSX_PAT凭证未落地;变更内容
publishjob 新增「发布到 Open VSX」步骤:pnpm exec ovsx publish --packagePath ./*.vsix,由仓库变量ENABLE_OVSX_PUBLISH门控(与ENABLE_MARKETPLACE_PUBLISH对称),OVSX_PAT环境变量传凭证ovsx@^1.1.1(pnpm exec项目锁定版本,规避 pnpm 12 dlx 对未审批构建脚本的硬失败;其传递依赖@vscode/vsce的构建脚本已在pnpm-workspace.yamlallowBuilds 审批,零新增审批)关键设计要点(循证)
--pre-release:ovsx 1.1.1 对「已打包 VSIX」会忽略该 flag 并告警——预发布语义已由packagejob 的vsce package --pre-release内嵌进 VSIX 元数据;这与vsce publish的「两端 flag 成对」要求不同,已在步骤注释中说明;ENABLE_OVSX_PUBLISH=true,零代码恢复;continue-on-error:旧步骤该项是因当时凭证未配置必失败,现由门控变量承担该职责,失败应显式暴露(与 VSCE 步骤一致);验证
pnpm install成功;lockfile 仅增 ovsx 依赖树与 peer 键重写,零既有包版本变化(eslint 仍 10.9.1、vsce 仍 3.9.2);pnpm exec ovsx --version→ 1.1.1;actionlint .github/workflows/ci.yml:新增步骤零提示(剩余 3 条为既有代码的 info 级 shellcheck 提示,未改动);pnpm run check-types+pnpm run lint通过;v*tag 验证 publish job 中 Open VSX 步骤发布成功。激活清单(用户侧,合入后)
ThreeFish-AInamespace 已创建并完成 Namespace Access claim(独占发布权)——create-namespace不自动授予独占权;OVSX_PAT(已就绪);Variables 添加ENABLE_OVSX_PUBLISH=true(激活开关)。🤖 Generated with Claude Code
Co-Authored-By: Claude Opus 5 (1M context) noreply@anthropic.com