fix(release): validate explicit versions and drop duplicate comparators

Review findings on #7586:
- validate an explicit release version before comparing; the shared
  comparator never throws, so 999.bad previously reached every manifest
- ci-release-notes imports the comparator by relative path: the
  release_github job runs without bun install
- route Bun cache pruning through compareVersions and delete
  compareSemverLikeVersions
- regression test for the release-version guard
This commit is contained in:
metaphorics
2026-08-05 01:09:31 +09:00
parent 954894f1d4
commit 726698e2b0
6 changed files with 87 additions and 55 deletions
+1 -1
View File
@@ -29,8 +29,8 @@
* underneath; this only adds curated context.
*/
import { compareVersions } from "@oh-my-pi/pi-utils";
import { $, Glob } from "bun";
import { compareVersions } from "../packages/utils/src/version";
const changelogGlob = new Glob("packages/*/CHANGELOG.md");
const REPO = process.env.OMP_REPO ?? process.env.GITHUB_REPOSITORY ?? "can1357/oh-my-pi";