Repository navigation
release-mac: build only in a worktree, check deps before credentials - #53
Merged
Merged
Conversation
The first real run from the primary checkout resolved credentials, then failed in the build because that checkout's node_modules is partial (no node-pty). The primary checkout only receives `git pull`, so the script now refuses it, checks node_modules is complete before touching a credential, and reads .env.release from the worktree or else the primary checkout, so one copy serves every release worktree. It also stops passing notarize=true twice. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Credentials are still resolved before dependency validation, contradicting the PR’s primary objective.
Review effort: Balanced
Findings: 1
What changed in this PR
Updates macOS release tooling to enforce worktree builds and improve preflight validation.
Changes:
- Rejects local release builds from the primary checkout.
- Adds dependency checks and shared
.env.releasefallback. - Simplifies notarization arguments and updates release documentation.
| File | Description |
|---|---|
scripts/release-mac.sh |
Adds worktree, environment, and dependency handling. |
docs/release-signing.md |
Documents the worktree-based release process. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+36
to
+39
| if [ -z "${MODEX_RELEASE_ENV_LOADED:-}" ] && [ -f "$env_file" ]; then | ||
| command -v op >/dev/null || die "$env_file present but the 1Password CLI (op) is not installed" | ||
| export MODEX_RELEASE_ENV_LOADED=1 | ||
| exec op run --env-file="$root/.env.release" -- "$0" "$@" | ||
| exec op run --env-file="$env_file" -- "$0" "$@" |
BunsDev
added a commit
that referenced
this pull request
Oct 1, 2026
* docs: bring status.md up to date with what is in flight In flight said "Nothing", but approval rules part 1 (#54) merged with part 2 pending, four contributor PRs are open, and three worktrees hold unlanded work. Record those, the #53 release-script change, the EPIPE failure on main CI for c9dcc7d, and #39 as an icon candidate for v0.0.5. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs: record the second terminal-cleanup CI failure #63's push run failed "cleanup timeout retains ownership and a later close can retry" with kill ESRCH from its SIGCONT cleanup; the pull_request run of the same commit passed. Widen the rough edge to cover both intermittent failures in terminal-cleanup.test.ts. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

The first real
scripts/release-mac.shrun resolved the 1Password credentials and the right certificate, then failed inprepare-terminal.mjswithCannot find module 'node-pty/package.json': the primary checkout'snode_modulesis partial, and byAGENTS.mdbuilds don't happen there.--verifyand CI) and says how to make a worktree.node-pty,electron,electron-builderand@electron/osx-signare installed before any credential is read..env.releasefrom the worktree, falling back to the primary checkout's copy.-c.mac.notarize=truetwice.docs/release-signing.md: the local release steps now start with a worktree.Tested in a throwaway repo: the primary checkout is refused with the instruction, and a worktree without deps stops at the dependency check.
🤖 Generated with Claude Code