fix(eval,ci): isolate interview eval and harden skill lint and design gate
- Run eval sessions in a temp dir outside the repo so Codex no longer reads the root AGENTS.md; empty streams, timeouts and crashes judge as ERROR instead of PASS - Close interview-gate lint gaps: softening phrases hidden on allowed lines, reordered phrasing, sibling-anchor bypass - design-gate: bold threshold 700, axe incomplete reported as manual checks, follow @import with query strings, report unverified color literals; keep site copy in sync via test - publish-npm.sh fails without NPM_TOKEN; CI requires Node 22.6+; ignore outputs/
This commit is contained in:
parent
bc914eafc5
commit
97f2c241e4
19 changed files with 767 additions and 139 deletions
|
|
@ -2,7 +2,7 @@
|
|||
# designpaca 패키지를 npmjs 에 배포하고 Forgejo 사설 레지스트리에 미러링한다.
|
||||
#
|
||||
# 필요 환경:
|
||||
# NPM_TOKEN npmjs 자동화 토큰 (필수)
|
||||
# NPM_TOKEN npmjs 자동화 토큰 (필수 — 없으면 exit 1)
|
||||
# FORGEJO_NPM_TOKEN Forgejo 개인 액세스 토큰 (선택 — 없으면 미러를 건너뛴다)
|
||||
# FORGEJO_NPM_OWNER Forgejo 패키지 소유자 (기본: yunchan)
|
||||
# GITHUB_SERVER_URL Forgejo 주소 (Actions 가 준다)
|
||||
|
|
@ -22,13 +22,27 @@ name="$(node -p 'require("./package.json").name')"
|
|||
version="$(node -p 'require("./package.json").version')"
|
||||
echo "배포 대상: ${name}@${version}"
|
||||
|
||||
# 배포 여부. E404 만 "아직 안 올라감"으로 본다. 네트워크·인증·레지스트리 장애를 미배포로 읽으면
|
||||
# 이미 올라간 버전에 npm publish 를 시도해 403 으로 죽어 재실행 멱등성이 깨진다.
|
||||
published() { # <registry-url>
|
||||
npm view "${name}@${version}" version --registry "$1" >/dev/null 2>&1
|
||||
local out
|
||||
if out="$(npm view "${name}@${version}" version --registry "$1" 2>&1)"; then
|
||||
return 0
|
||||
fi
|
||||
if printf '%s' "$out" | grep -q 'E404'; then
|
||||
return 1
|
||||
fi
|
||||
echo "npm view 가 E404 가 아닌 오류로 실패했다 — 배포 여부를 알 수 없어 멈춘다:" >&2
|
||||
echo "$out" >&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
# ── 1) npmjs ──
|
||||
if [ -z "${NPM_TOKEN:-}" ]; then
|
||||
echo "NPM_TOKEN 이 없다 — npmjs 배포를 건너뛴다" >&2
|
||||
# 이 스크립트는 태그 릴리스(DO_PUBLISH=1)에서만 호출된다. 토큰 없이 초록으로 끝나면
|
||||
# npm 에는 아무것도 안 올라간 채 draft 릴리스와 사이트 배포가 이어진다.
|
||||
echo "NPM_TOKEN 이 없다 — 태그 릴리스에는 필수 시크릿이라 실패시킨다" >&2
|
||||
exit 1
|
||||
else
|
||||
npmrc="$(mktemp)"
|
||||
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > "$npmrc"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue