Release guard tidy: the Python build guard starts without NODE_OPTIONS too
The python-build step runs the same guard whose output is the dist PyPI uploads, so a NODE_OPTIONS preload in the workflow or job env could stub its checks exactly as it could on the npm Publish line. It now starts under env -u NODE_OPTIONS; the pin's exact text and semver-policy.md say so. The pin test's if: always() edit matched the npm line's old text and had become a no-op; it now matches the pinned line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
49a5526ede
commit
a126914efc
3 changed files with 10 additions and 8 deletions
|
|
@ -312,9 +312,10 @@ removed (`NODE_OPTIONS`, `NODE_TEST_CONTEXT`, any other `NODE_TEST_*` variable,
|
|||
and `NODE_AUTH_TOKEN`), so none of those can make the tests run nothing and
|
||||
pass, and only the release action receives the token. That list names known
|
||||
variables; it does not prove that no other inherited variable can affect a
|
||||
check. The npm Publish step starts the guard under `env -u NODE_OPTIONS`, so a
|
||||
`NODE_OPTIONS` preload set in the workflow's or job's `env:` cannot run code
|
||||
inside the guard before its first line.
|
||||
check. The npm Publish step and the Python sdist and wheel build step start the
|
||||
guard under `env -u NODE_OPTIONS`, so a `NODE_OPTIONS` preload set in the
|
||||
workflow's or job's `env:` cannot run code inside the guard before its first
|
||||
line.
|
||||
The gate is that call, not a step condition, so no `if:` or `continue-on-error`
|
||||
can release what a check refused. The tests compare each job's release steps
|
||||
with their expected text exactly, less the steps' `if:` lines. Removing the call
|
||||
|
|
|
|||
Loading…
Reference in a new issue