Skip to content

fix(ci): dist:win 加 --publish never 避免 403 cleanup 错误 - #117

Merged
ACCSCI merged 1 commit into
masterfrom
fix/ci-publish-never
Jul 16, 2026
Merged

fix(ci): dist:win 加 --publish never 避免 403 cleanup 错误#117
ACCSCI merged 1 commit into
masterfrom
fix/ci-publish-never

Conversation

@ACCSCI

@ACCSCI ACCSCI commented Jul 16, 2026

Copy link
Copy Markdown
Owner

问题

master 上 PR #116 (bump v0.3.0) 的 Build CI 失败: HttpError: 403 Forbidden 在 electron-builder 的 cleanup 阶段。

根因

CI build.yml 跑 bun run dist:win,但该脚本缺少 --publish 参数。electron-builder 检测到 electron-builder.ymlpublish: github 配置后,在 build 结束的 cleanup 阶段尝试访问 GitHub Release API。build workflow 的 token 无 release 写权限 → 403。

v0.3.0 发布后 release 里有了 latest.yml,electron-builder 的 cleanup 开始访问它,暴露了这个一直存在的问题(此前 release 为空,cleanup 是 no-op,所以 PR #115 能过)。

修复

dist:win--publish never(与 pack 一致)。正式发布仍走 dist:win:publish(--publish always),不受影响。

CI build.yml 跑 'bun run dist:win',但该脚本没有 --publish 参数。
electron-builder 检测到 electron-builder.yml 里的 publish: github
配置后,在 build 结束的 cleanup 阶段尝试访问 GitHub Release API,
build workflow 的 token 无 release 写权限 → 403 Forbidden → build 失败。

v0.3.0 发布后 release 里有了 latest.yml,electron-builder 的
cleanup 逻辑开始访问它,暴露了这个一直存在的问题(之前 release
为空时 cleanup 是 no-op)。

修复: dist:win 加 --publish never(与 pack 一致)。发布仍走
dist:win:publish (--publish always),不受影响。
Copilot AI review requested due to automatic review settings July 16, 2026 07:18

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the 'dist:win' script in 'package.json' to append the '--publish never' flag, preventing automatic publishing during Windows distribution builds. There are no review comments, and I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@ACCSCI
ACCSCI merged commit 8262a19 into master Jul 16, 2026
1 check passed
@ACCSCI
ACCSCI deleted the fix/ci-publish-never branch July 16, 2026 07:49
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.

2 participants