fix(ci): 允许发布校验安装依赖 / allow publish validation dependency install - #29
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. WalkthroughThe release workflow now runs ChangesRelease publish validation
Estimated code review effort: 1 (Trivial) | ~5 minutes Merge Risk: ⚪ Minimal · up to The release workflow now allows dependency installation during MoonBit’s fresh-archive validation while retaining the preceding deterministic checks; no actionable merge-blocking risk remains beyond normal checks and review. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Full details: Docstring CoverageExplanation No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (2 skipped: 2 unsupported.) ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
中文
问题
PR #28 合并后的 v0.2.0 publish run 已证明
MOON_CREDENTIALS能被 Actions 正常读取,但moon publish --frozen在 MoonBit 自身的发布校验阶段失败。moon publish会解压生成的 ZIP 到全新临时模块并再次运行moon check。该目录没有.mooncakes,需要首次安装moon.mod声明的依赖;--frozen禁止安装,因此日志精确报错:new modules need to be installed。修复
../respo.mbt的成功发布配置保持一致,将最终 registry 命令改为moon publish。moon update/check/test/info/fmt、生成器、browser、build、moon package --frozen、17 文件白名单与 checksum。验证
MOON_CREDENTIALS:上一 run 已进入实际moon publish,认证 Secret 非空且成功加载。git diff --check:通过。respo.mbt的 release workflow 使用moon publish,近 10 次 release runs 均成功。合并后重新 dispatch
v0.2.0,并跟踪 registry 与全新下游验证至完成。关联 #17。English
Problem
The v0.2.0 publish run after PR #28 proves that Actions can read
MOON_CREDENTIALS, butmoon publish --frozenfails during MoonBit's own publication validation.moon publishextracts the generated ZIP into a fresh temporary module and runsmoon checkagain. That directory has no.mooncakesand must install dependencies declared bymoon.mod;--frozenforbids that installation, producing the exact errornew modules need to be installed.Fix
../respo.mbtconfiguration by usingmoon publishfor the final registry command.moon update/check/test/info/fmt, generator, browser, build,moon package --frozen, the 17-file allowlist, and checksum.Verification
MOON_CREDENTIALS: the previous run reached realmoon publish, proving the Secret is non-empty and loaded.git diff --check: passes.respo.mbtusesmoon publish, and its latest ten Release runs succeeded.After merge, dispatch
v0.2.0again and follow registry/fresh-downstream verification through completion. Tracks #17.Summary by CodeRabbit
Documentation
Chores