Skip to content

Prevent release dry runs from publishing through npm shims - #3

Merged
flujo-app merged 2 commits into
mainfrom
codex/release-dry-run-guard
Sep 6, 2026
Merged

Prevent release dry runs from publishing through npm shims#3
flujo-app merged 2 commits into
mainfrom
codex/release-dry-run-guard

Conversation

@flujo-app

@flujo-app flujo-app commented Sep 6, 2026

Copy link
Copy Markdown
Owner

PowerShell's npm shim can consume --dry-run and expose it only as npm_config_dry_run=true, leaving the release script with no arguments and causing a real patch release. Honor that setting before preflight, reject unknown options and multiple version arguments, and make help exit before any Git or publication commands. Normal release version selection remains unchanged.

Validation: all 14 real-entrypoint tests pass on Windows and Ubuntu in workflow 34005260591. Child-process APIs are intercepted so dry-run/help/invalid arguments cannot execute publication or Git mutations. Syntax and whitespace checks pass. The added CI workflow runs these checks on pull requests and does not publish artifacts.

This change keeps Brain at 0.3.15. Its main-branch image workflow will complete that existing release using the now-published and verified FLUJO 3.45.2. FLUJO's public npm consumer, full test gate, tagged Windows consumer, regular container and dedicated worker gates all passed before this merge.

@flujo-app
flujo-app marked this pull request as ready for review September 6, 2026 03:24
@flujo-app
flujo-app merged commit c2296dc into main Sep 6, 2026
2 checks passed
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