Repository navigation
ci: 引入 GitHub Actions CI 与单文件 exe 自动打包 - #31
Merged
Merged
Conversation
[Medium impact] The PR changes contributor checks and the Windows release path for this repository. Fix the release condition before merging so manual development builds cannot publish Releases. Findings
SummaryAdds Windows CI and automatic single-file executable builds.
Reviews (1) · Last reviewed commit: "docs: 同步 exe 发布流程说明" · Reviewed by Greptile |
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.
概述
引入 GitHub Actions CI 与 Windows 单文件 exe 自动打包:支持手动产出开发包,
v*标签自动发布 Release。改动
.nvmrc(26.12.1)、scripts/build-exe.mjs(esbuild ESM → SEA → postject)、npm run build:execi.yml在 PR 与 pushmain时自动执行npm ci → typecheck → build → testbuild-exe.ymlCodexMonitor-dev-<sha7>artifact,不创建 Releasev*标签:校验 tag 与package.json版本 → 测试 → 打包 → exe 冒烟 → 上传并创建 Releasecheckout@v7/setup-node@v7/upload-artifact@v7/action-gh-release@v3,Node 按.nvmrc锁定验证
npm run typecheck通过npm test:315 通过 + 1 跳过(Windows 0600 权限用例)npm run build:exe:产出 104.6 MBdist-exe/CodexMonitor.exe--version→0.1.0,--help正常,从其他目录运行正常v0.1.0通过,v0.2.0正确拒绝备注
registry.npmmirror.com镜像源git tag v0.1.0触发Closes #30