Skip to content

Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.

ci(release): publish job updates the Homebrew cask (eneskirca/homebrew-tap)

enesf5d68730539b
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 06c08c544..b9e88b467 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -157,3 +157,68 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}
run: gh release edit "${GITHUB_REF_NAME}" --repo "${GITHUB_REPOSITORY}" --prerelease=false --latest
+
+ # Keep the Homebrew tap (eneskirca/homebrew-tap → `brew install --cask nodeterm`) in
+ # step with the release: regenerate Casks/nodeterm.rb with this version's dmg hashes
+ # and push via a write deploy key on the tap repo (TAP_DEPLOY_KEY secret). Skips with
+ # a warning when the secret is absent — a missing key must never block a release.
+ - name: Update Homebrew cask
+ env:
+ TAP_DEPLOY_KEY: ${{ secrets.TAP_DEPLOY_KEY }}
+ GH_TOKEN: ${{ github.token }}
+ run: |
+ if [ -z "$TAP_DEPLOY_KEY" ]; then
+ echo "::warning::TAP_DEPLOY_KEY secret not set; skipping Homebrew cask update"
+ exit 0
+ fi
+ tag="${GITHUB_REF_NAME}"; ver="${tag#v}"
+ gh release download "$tag" --repo "$GITHUB_REPOSITORY" \
+ --pattern "nodeterm-${ver}-arm64.dmg" --pattern "nodeterm-${ver}.dmg" -D dmgs
+ arm_sha=$(sha256sum "dmgs/nodeterm-${ver}-arm64.dmg" | cut -d' ' -f1)
+ intel_sha=$(sha256sum "dmgs/nodeterm-${ver}.dmg" | cut -d' ' -f1)
+ mkdir -p ~/.ssh && printf '%s\n' "$TAP_DEPLOY_KEY" > ~/.ssh/tap_key && chmod 600 ~/.ssh/tap_key
+ ssh-keyscan github.com >> ~/.ssh/known_hosts 2>/dev/null
+ export GIT_SSH_COMMAND="ssh -i ~/.ssh/tap_key -o IdentitiesOnly=yes"
+ git clone --depth 1 [email protected]:eneskirca/homebrew-tap.git tap
+ cat > tap/Casks/nodeterm.rb <<CASK
+ cask "nodeterm" do
+ version "${ver}"
+
+ on_arm do
+ sha256 "${arm_sha}"
+ url "https://github.com/eneskirca/nodeterm/releases/download/v#{version}/nodeterm-#{version}-arm64.dmg"
+ end
+ on_intel do
+ sha256 "${intel_sha}"
+ url "https://github.com/eneskirca/nodeterm/releases/download/v#{version}/nodeterm-#{version}.dmg"
+ end
+
+ name "nodeterm"
+ desc "Node-based terminal manager — terminals and coding agents on an infinite canvas"
+ homepage "https://nodeterm.dev/"
+
+ livecheck do
+ url :url
+ strategy :github_latest
+ end
+
+ # The app self-updates via electron-updater; brew should not force-reinstall over it.
+ auto_updates true
+
+ app "nodeterm.app"
+
+ zap trash: [
+ "~/Library/Application Support/node-terminal",
+ "~/Library/Preferences/com.nodeterm.app.plist",
+ "~/Library/Saved Application State/com.nodeterm.app.savedState",
+ ]
+ end
+ CASK
+ # The heredoc above is indented for YAML; strip the leading 10 spaces.
+ sed -i 's/^ //' tap/Casks/nodeterm.rb
+ cd tap
+ git config user.name "nodeterm-release"
+ git config user.email "[email protected]"
+ git add Casks/nodeterm.rb
+ git diff --cached --quiet || git commit -m "cask: nodeterm ${tag}"
+ git push origin main