Semver release: the suite runs first in CI and in the Unity scripts, and the Caching Unity prefix is its own tag family
publish-packages.yml runs the suite in both jobs, after .NET setup on a full-depth checkout and before any check or publish step; the three Unity release scripts run it before the checker. A test reads each file and fails when the step is removed, moved, or made non-fatal. The Caching Unity pin now needs a prefix declared once whose exact tags hold the package's own manifest at the tag's version. No NUL byte in the checker is a test. The policy records that releases run from a full clone. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
c84a1fcc06
commit
7ec300a5aa
6 changed files with 160 additions and 15 deletions
|
|
@ -14,6 +14,12 @@ $manifestPath = Join-Path $packageRoot "package.json"
|
|||
|
||||
$version = (Get-Content -LiteralPath $manifestPath -Raw | ConvertFrom-Json).version
|
||||
|
||||
# The suite pins the checker's rules and the declared tag prefixes, so it runs first.
|
||||
& node --test (Join-Path $repoRoot "scripts\check-changelog-semver.test.mjs")
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
throw "The release check suite failed (scripts/check-changelog-semver.test.mjs); not releasing."
|
||||
}
|
||||
|
||||
& node (Join-Path $repoRoot "scripts\check-changelog-semver.mjs") `
|
||||
--package "org.gamecult.caching.unity" `
|
||||
--version $version `
|
||||
|
|
|
|||
Loading…
Reference in a new issue