Skip to content

ci: 引入 GitHub Actions CI 与单文件 exe 自动打包 - #31

Merged
yyy-router merged 7 commits into
mainfrom
chore/github-actions
Oct 30, 2026
Merged

yyy-router merged 7 commits into
mainfrom
chore/github-actions

Conversation

@yyy-router

Copy link
Copy Markdown
Owner

概述

引入 GitHub Actions CI 与 Windows 单文件 exe 自动打包:支持手动产出开发包,v* 标签自动发布 Release。

改动

  • 构建:Node ≥ 26、.nvmrc(26.12.1)、scripts/build-exe.mjs(esbuild ESM → SEA → postject)、npm run build:exe
  • CI:ci.yml 在 PR 与 push main 时自动执行 npm ci → typecheck → build → test
  • 打包:build-exe.yml
    • 手动触发:产出 CodexMonitor-dev-<sha7> artifact,不创建 Release
    • v* 标签:校验 tag 与 package.json 版本 → 测试 → 打包 → exe 冒烟 → 上传并创建 Release
    • Actions 升级至 checkout@v7 / setup-node@v7 / upload-artifact@v7 / action-gh-release@v3,Node 按 .nvmrc 锁定
  • 文档:README 增加看板截图、CI 徽章与自动化说明;AGENTS 技术栈同步

验证

  • npm run typecheck 通过
  • npm test:315 通过 + 1 跳过(Windows 0600 权限用例)
  • npm run build:exe:产出 104.6 MB dist-exe/CodexMonitor.exe
  • exe 冒烟:--version → 0.1.0,--help 正常,从其他目录运行正常
  • 版本校验:v0.1.0 通过,v0.2.0 正确拒绝

备注

  • 依赖锁文件按当前选择保留 registry.npmmirror.com 镜像源
  • exe 未签名,首次运行会触发 SmartScreen;签名需在 postject 注入之后进行
  • 首次 Release 建议在合并后用 git tag v0.1.0 触发

Closes #30

@greptile-apps

greptile-apps Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 4/5

[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

  1. P1 Manual builds publish releases ▶

Summary

Adds Windows CI and automatic single-file executable builds.

  • Windows builds produce a single executable for artifacts and version releases.
  • Pull requests and pushes to main run Windows CI checks.
  • The project now requires Node 26 and pins the runtime to 26.12.1.
  • The README shows the TUI dashboard and updated test coverage.

Reviews (1) · Last reviewed commit: "docs: 同步 exe 发布流程说明" · Reviewed by Greptile

Comment thread .github/workflows/build-exe.yml Resolved
@yyy-router
yyy-router merged commit 685694c into main Oct 30, 2026
2 checks passed
@yyy-router
yyy-router deleted the chore/github-actions branch October 30, 2026 03:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore: 引入 GitHub Actions CI 与自动打包单文件 exe

1 participant