Skip to content

chore(release): release notes wording, Windows-capable install gate, shared workflows 2026-11-29 - #144

Merged
NSchatz merged 4 commits into
mainfrom
chore/followups
Nov 30, 2026
Merged

NSchatz merged 4 commits into
mainfrom
chore/followups

Conversation

@NSchatz

@NSchatz NSchatz commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

What

Three changes, one commit each, and a fourth commit that finishes item 2.

  1. RELEASING.md: the paragraph on the cli bin alias no longer says who would decide to revisit it. It now says the alias is a decision about the commands every user gets, not a packaging tidy-up.
  2. scripts/release-install-gate.mjs: the gate started pnpm pack and npm install by bare name with no shell. On Windows both are .cmd files, which Node starts only through cmd.exe, so the gate failed before it packed anything. Both now go through toolCommand from @cosyte/script-utils/attw (already a devDependency), which leaves the call unchanged off Windows and builds a quoted cmd.exe line on Windows. On Windows each bin now runs as node <target>: the extensionless .bin entry there is a shell script Windows cannot start, and a .cmd shim's node child would outlive the kill that ends a server's window. test/release-install-gate.test.ts is no longer left out on Windows in vitest.config.ts. A follow-up commit makes the test's environment override drop an inherited variable of the same name in another case: on Windows the registry case otherwise reached the public registry (npm E404) instead of the closed local port it names.
  3. .github/workflows/*.yml: all nine uses: cosyte/.github/... lines move from workflows-2026-11-28-ee3e8abed802 to workflows-2026-11-29-8c4385954cad, pinned by the full commit SHA with the reference name in a comment.

Why

  1. The release notes should describe the trade itself.
  2. The pull request matrix runs Windows, and a release script that only works on Linux was excluded from those legs rather than fixed.
  3. The new reference tags the version commit after the pre-publish gates pass, so a refused gate leaves no tag.

Proof

  • Item 2, red before green: the test file alone, with its Windows exclusion removed and no fix, was run on Windows through a manual CI run on a throwaway branch (since deleted). ci / verify (22|24|26, windows-latest) failed with 9 tests in test/release-install-gate.test.ts reporting gate-error where a verdict was expected. With the fix, the first run on this pull request left one Windows failure, the registry case (install-failed where gate-registry-unreachable was expected; a probe printed npm E404), fixed by the fourth commit. On the head commit all three Windows legs pass and show test/release-install-gate.test.ts (28 tests) passing.
  • Locally on Linux, Node 26: pnpm exec vitest run test/release-install-gate.test.ts 28 passed; node scripts/release-install-gate.mjs against this tree passed (both bins ran from the installed .bin links); pnpm test 46 files, 830 tests passed; pnpm lint, pnpm typecheck, pnpm format:check, pnpm phi-scan, pnpm check:no-emdash, pnpm check:no-internal-refs, pnpm check:readme, pnpm check:claude-card, pnpm check:process all exit 0.
  • Item 1: cosyte-internal-refs run with RELEASING.md, AGENTS.md and CLAUDE.md added to its surface paths reports no hits.
  • Item 3: between the two references only the shared release.yml changed among the workflows, and only inside its release job's steps (the tag step moves after the gates); no input, job, or job name changed, so every job that ran before still runs. grep finds no remaining reference to the old SHA.
  • Left to CI: the Windows, macOS, Bun and Deno legs, mutation, coverage ratchet, CodeQL, actionlint.

Choices

  • No changeset: nothing in the npm tarball changes.
  • Item 2 uses the shared toolCommand rather than a local copy of its quoting rules.
  • On Windows the gate runs each bin under node rather than through its .cmd shim, for the kill reason above.

…ws too

npm and pnpm are .cmd files on Windows, which Node starts only through
cmd.exe, so the gate's bare spawns failed there before it packed anything.
They now go through toolCommand from @cosyte/script-utils, and on Windows
each bin runs under node directly. The gate's test runs on Windows again.
…385954cad

The release now tags the version commit only after the pre-publish gates
pass, so a refused gate leaves no tag behind.
… the inherited one uses

On Windows the registry case reached the public registry: the override the
test set did not replace the inherited setting there.
@NSchatz
NSchatz merged commit 511ee97 into main Nov 30, 2026
28 checks passed
@NSchatz
NSchatz deleted the chore/followups branch November 30, 2026 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant