Harden public package installation and release validation
Some checks failed
Release package / package (macos-latest) (push) Has been cancelled
Release package / package (ubuntu-latest) (push) Has been cancelled
Release package / package (windows-latest) (push) Has been cancelled

This commit is contained in:
oliver 2026-10-11 13:32:36 +08:00
parent 9271494b37
commit 9b2166e5b6
41 changed files with 994 additions and 363 deletions

View file

@ -132,11 +132,12 @@ function opsSkillsRoot() {
if (envRoot && existsSync(envRoot))
return envRoot;
const here = dirname(fileURLToPath(import.meta.url));
const checkout = [join(here, "..", ".git"), join(here, "..", "..", ".git")].some(existsSync);
const siblingCandidates = [
join(here, "..", "..", "..", "netx", "skills"),
join(here, "..", "..", "netx", "skills")
];
for (const candidate of siblingCandidates) {
for (const candidate of checkout ? siblingCandidates : []) {
if (existsSync(candidate))
return candidate;
}