Repository navigation
Browser Release Checks
A release of the browser version lands in four places: the GitHub release (with the desktop app), npm, ghcr.io and Docker Hub. They are separate services, so no release can succeed or fail on all four at once. This page explains how we make a half-finished release unlikely, loud when it happens, and easy to finish. The packages and the image themselves are in Browser Version Packages and Docker Image.
.github/workflows/browser-rehearsal.yml runs on every push to develop, the branch betas are cut from. It
calls browser.yml with publish: true and dry_run: true, so it walks the real release path:
- release-mode programs (
--release, with LTO andpanic = "abort") on all six platforms, each smoke tested with Bun and Node; - the Docker image on amd64 and arm64, each smoke tested in a container;
-
bun scripts/npm-package.ts publish --dry-runover every tarball: the registry check, the dist-tag and the order, with nothing uploaded; - the two-architecture Buildx build with every tag, without
--push.
A newer push cancels an older rehearsal. Run workflow starts one by hand.
A release fails when NPM_TOKEN, DOCKERHUB_USERNAME or DOCKERHUB_TOKEN is missing. Earlier, a missing secret
only printed a warning: the run stayed green while nothing was published, which is the worst kind of failure
because nobody notices it.
flowchart LR
P["platform builds"] --> N["publish (npm)"] --> VN["verify-npm"]
P --> D["docker tests"] --> DP["docker-publish"] --> VD["verify-docker"]
npm and Docker are separate jobs, so one can fail while the other succeeds. The npm side publishes the platform
packages first and the launcher last: if anything fails in between, nibtree@<version> does not exist, so nobody
can install a launcher that points at a missing program.
release.yml runs browser-verify.yml after the browser job, also when that job failed halfway, so whatever did
get published is checked. Run workflow starts it by hand for any tag. scripts/release-verify.ts checks what
people actually get, retrying for about five minutes while the registries catch up:
-
verify-npm, on Linux, macOS and Windows: npm lists the launcher and all six platform packages at the version, thenextorlatesttag points at it, andnpx nibtree@<version> --versionandnpx nibtree@<tag> --versionboth print it; -
verify-docker: in both registries the version haslinux/amd64andlinux/arm64, anddocker runof the version and of its moving tag prints it. It signs in to ghcr.io, because a new package there starts private.
Open the release run in Actions and choose Re-run failed jobs. It is safe:
-
npm-package.ts publishskips every version npm already has, so it only uploads what is missing; - pushing the same Docker tags again stores the same image;
- the verify jobs run again after it.
If the fix needs a code change, it goes into the next release: a published npm version cannot be replaced.
| File | What it does |
|---|---|
.github/workflows/browser-rehearsal.yml |
the rehearsal on develop
|
.github/workflows/browser.yml |
dry_run and the secret checks |
.github/workflows/browser-verify.yml |
verify-npm and verify-docker, run by release.yml (or by hand for a tag) |
scripts/release-verify.ts |
the checks after publishing |
scripts/dockerImage.ts |
imagePlatforms, read from the image index (tested) |
Rehearse on develop, not on every pull request. Release builds on six platforms take about half an hour.
develop is where every beta starts, so a rehearsal there runs before any release can, while pull requests stay
on the faster debug builds.
Fail on a missing secret. A loud failure can be fixed with a rerun; a silent skip is found by users.
Check from the outside. The verify jobs use npx and docker pull like everyone else, so they also catch a
package that was published but cannot be installed.
The first rehearsal on develop failed at Publish to npm. bun publish --dry-run stopped with "missing
authentication", though a dry run sends nothing. The rehearsal has no NPM_TOKEN on purpose, so it cannot upload
by mistake. scripts/npm-package.ts now gives a dry run a placeholder token when there is no real one: bun is
happy, and a placeholder could not publish even if the dry-run flag were lost. A real publish still needs the
secret and fails loudly without it.
These pages are generated from docs/wiki. To correct something, open a pull request against the source file; edits made here are overwritten.
Using Nibtree
- Getting Started
- Welcome Screen
- Workspaces
- Files Panel
- File Operations
- File Icons
- Rounded Panels
- Editor and Tabs
- Pin Reorder and Wrap Tabs
- Single Tab Title
- Split Editor
- New File and Unsaved Changes
- Unload Hidden Tabs
- Editing Code
- Code Appearance
- Markdown Editor
- Image and PDF Preview
- Search Everywhere
- Recent Files
- Navigation Bar
- Find and Replace
- Changes and Commits
- Sign In Prompts
- Commit Box Layout
- Repository Actions
- Commit Options
- Ignoring Files
- Diffs
- Inline Diffs
- Staging View
- Revert a Change
- Resolving Conflicts
- Merge Tool
- Blame
- History and Log
- Merge Commits
- Branches and Tags
- Branches Popup
- Remotes
- Stashes
- Shelf
- Git Menu
- Git Dialogs
- Interactive Rebase
- Worktrees
- AI Agents
- AI Tasks
- AI Usage
- Keep Computer Awake
- Submodules
- Git LFS
- GitHub
- Git Console
- Terminal
- Terminal Features
- Scripts
- Navigation
- Menus
- Settings
- Settings Search
- Color Themes
- Settings Terminal and Automation
- Settings Files
- Updates
- Status Bar and Help
- Notifications
- Memory Use
- Clear Cache
- MCP and CLI
- Git Mergetool
- Keyboard Shortcuts
- Keyboard Shortcuts Editor
- Troubleshooting
- Troubleshooting Git
Developers
- Developer Guide
- Architecture
- Project Layout
- Backend
- How Folder Watching Works
- Folder Watching Bugs We Fixed
- How Workspace Files Work
- How the Preview Scheme Works
- Backend Services
- How Terminal Features Work
- Terminal Bugs We Fixed
- Frontend
- How the Rich Markdown Editor Works
- Rich Markdown Bugs We Fixed
- Git Menu Links
- Menu Keys and Routing
- Frontend Modules
- Blame Bugs We Fixed
- Project Color And Title Bar
- One Diff View
- Diff Bugs We Fixed
- Merge Tool Layouts
- Merge Tool Bugs We Fixed
- Color Theme Bugs We Fixed
- How the Connected Diff Works
- Rounded Panels Bugs We Fixed
- Update Bugs We Fixed
- Status Bar Bugs We Fixed
- MCP and CLI Bugs We Fixed
- Repository Actions Bugs We Fixed
- How the Changes Tab Works
- CodeMirror Patterns
- How the Cursor Works
- How Editor Features Work
- How the Path Bar Works
- Commands and Events
- Settings Reference
- Commands Workspace and Changes
- Commands Branches and Remotes
- Commands History and Extras
- Commands App and Tools
- Testing
- Test Suites
- Debugging
- Debugging with MCP
- Measuring Setting Memory
- How Terminal Memory Is Measured
- How Markdown Diagrams Work
- Releases and CI
- Publishing the Wiki
- Versioning and Changelog
- Browser Version Packages
- Browser Release Checks
- Docker Image
- Platforms and Signing
- Windows Support
- Windows Bugs We Fixed
- Windows MCP and CLI
- Docs and Screenshots
- UI Library
- UI Library MCP
- UI Library Bugs
- UI Library Migration
- Contributing
How features work
- Welcome screen
- Workspaces and folders
- Files panel
- File operations
- File icons
- Editor and tabs
- Pin, reorder and wrap tabs
- Single tab title
- Split editor
- New File and unsaved changes
- Unload hidden tabs
- Editing code
- Code appearance
- Markdown editor
- Image and PDF preview
- Search Everywhere
- Recent Files
- Navigation Bar
- Find and replace
- Changes and commits
- Sign-in prompts
- Commit box layout
- Repository actions
- Commit options
- Ignoring files
- Diffs
- Inline diffs
- Staging view
- Revert a change
- Resolving conflicts
- Merge tool
- Blame
- History and log
- Merge commits
- Commit tabs
- Branches and tags
- Branches popup
- Remotes
- Stashes
- Shelf
- Git menu
- Git dialogs
- Interactive rebase
- Worktrees
- AI agents
- AI usage
- Keep computer awake
- AI tasks
- Submodules
- Git LFS
- GitHub account
- Git Console
- Back and Forward
- Integrated terminal
- Scripts tool window
- Menu bar
- Settings
- Search in Settings
- Color themes
- Rounded panels
- Updates and release channels
- Status bar and help links
- Notifications
- Memory readout and memory log
- Clear Cache
- MCP server and command line tool
- git mergetool mode