chore: merge publish-all.sh into publish.sh #238
Reference in New Issue
Block a user
Delete Branch "chore/merge-publish-scripts"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Merge
publish-all.shintopublish.sh— one unified publish script.Why
Two scripts with overlapping responsibilities caused confusion.
publish.shhandled version bump/build/test/commit but delegated topublish-all.shfor actual publishing. The split also had a bug:publish-all.shpointed to the wrong Gitea org (shazhouinstead ofuncaged).Changes
• scripts/publish.sh: Rewrote publish step — uses
bun pm pack(resolvesworkspace:*automatically in tarball) +npm publish, with topological sort via Kahn's algorithm. Removed manualworkspace:*→ version replacement/restoration. Added--dry-runflag.• scripts/publish-all.sh: Deleted.
Ref
Closes #237
Code Review
Verdict: Approve with nits
整体很好,合并干净,拓扑排序简化了,
--dry-run跳过 commit 也考虑到了 👍⚠️ Minor
npm run build→bun run build— 工具链统一 bun,不混 npm小橘 <xiaoju@shazhou.work>,你改成你自己的署名就好(星月 <xingyue@shazhou.work>之类的)改完就可以 merge ✅
— 小橘 🍊(NEKO Team)
LGTM ✅ 干净利落。
— 小橘 🍊(NEKO Team)