Skip to content

perf(ci): remove redundant builds and setup from desktop release and npm publish workflows - #1079

Merged
badcuban merged 1 commit into
mainfrom
perf/release-workflow-speed
Nov 24, 2026
Merged

badcuban merged 1 commit into
mainfrom
perf/release-workflow-speed

Conversation

@badcuban

Copy link
Copy Markdown
Collaborator

Problem

Desktop Release (release.yml, 16.5 to 22.8 min) and npm-package.yml repeated several expensive steps across jobs:

  • preflight downloaded an unused Electron binary and re-ran release-smoke.ts right after verify-release-ci.ts confirmed "Release Smoke" passed on the same commit, then prepare_release spun up a second runner and restored the 1.23 GB pnpm cache just to create the draft release.
  • macos, windows, and linux each did a full fetch-depth: 0 checkout, downloaded an unused root Electron binary, and compiled the same platform-independent JS bundles from scratch (47 to 70s each).
  • windows had no actions/cache for Electron, electron-builder, or the TrustedSigning PowerShell module (25s per run).
  • publish restored the 1.23 GB pnpm cache and ran vp install even on single-arch nightlies where it only calls gh release edit --draft=false.
  • npm-package.yml rebuilt the entire web and server bundle in publish right after pack built and smoke-tested it.

Fix

  • Merged prepare_release into preflight in .github/workflows/release.yml, tracking draft creation via draft_created so cleanup_failed_release still cleans up failed drafts safely.
  • Built apps/desktop/dist-electron and apps/server/dist once in preflight, uploaded a tarball artifact (retention-days: 7), and extracted + passed --skip-build in windows, macos, and linux using relative paths so GNU tar works on Windows Git Bash.
  • Set ELECTRON_SKIP_BINARY_DOWNLOAD=1 during root vp install (leaving staged packaging untouched), switched platform jobs to shallow checkout, and added Electron, electron-builder, and TrustedSigning caching to windows.
  • Skipped checkout, setup-vp, vp install, and manifest merge in publish when needs_mac_manifest_merge != 'true', passing GH_REPO so gh release edit works without a checkout.
  • Updated .github/workflows/npm-package.yml to apply channel-appropriate brand assets in pack, upload the smoke-tested tarball (retention-days: 7), and publish that exact tarball in publish with Node 24 (cache: false) for npm OIDC trusted publishing.

…npm publish workflows

Desktop Release spent extra wall-clock and runner minutes duplicating work across jobs: prepare_release spun up a second runner after preflight, preflight re-ran Release Smoke and downloaded an unused Electron binary, macOS/Windows/Linux each recompiled the same JS bundles from scratch, publish restored the 1.23 GB pnpm cache even on single-arch nightlies, Windows lacked Electron/electron-builder/TrustedSigning caches, and npm-package rebuilt the entire server and web app in publish right after pack tested it.

Merged prepare_release into preflight, built the shared desktop/server/web JS bundles once on Linux and handed the tarball to platform jobs (--skip-build), set ELECTRON_SKIP_BINARY_DOWNLOAD=1 on root vp install steps, cached Windows Electron/electron-builder/TrustedSigning downloads, skipped checkout and pnpm install in publish when no macOS manifest merge is needed, and passed the tested npm tarball from pack to publish in npm-package.yml.
@vercel

vercel Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
threadlines Ready Ready Preview Nov 24, 2026 3:22am UTC

Request Review

@badcuban
badcuban added this pull request to the merge queue Nov 24, 2026
Merged via the queue into main with commit 327a3b8 Nov 24, 2026
23 checks passed
@badcuban
badcuban deleted the perf/release-workflow-speed branch November 24, 2026 03:43

This branch was successfully deployed

1 active deployment
Preview — b7308a4a Deployed Nov 24, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant