Repository navigation
perf(ci): remove redundant builds and setup from desktop release and npm publish workflows - #1079
Merged
Merged
Conversation
…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.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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.
Problem
Desktop Release (
release.yml, 16.5 to 22.8 min) andnpm-package.ymlrepeated several expensive steps across jobs:preflightdownloaded an unused Electron binary and re-ranrelease-smoke.tsright afterverify-release-ci.tsconfirmed"Release Smoke"passed on the same commit, thenprepare_releasespun up a second runner and restored the 1.23 GB pnpm cache just to create the draft release.macos,windows, andlinuxeach did a fullfetch-depth: 0checkout, downloaded an unused root Electron binary, and compiled the same platform-independent JS bundles from scratch (47 to 70s each).windowshad noactions/cachefor Electron,electron-builder, or theTrustedSigningPowerShell module (25s per run).publishrestored the 1.23 GB pnpm cache and ranvp installeven on single-arch nightlies where it only callsgh release edit --draft=false.npm-package.ymlrebuilt the entire web and server bundle inpublishright afterpackbuilt and smoke-tested it.Fix
prepare_releaseintopreflightin.github/workflows/release.yml, tracking draft creation viadraft_createdsocleanup_failed_releasestill cleans up failed drafts safely.apps/desktop/dist-electronandapps/server/distonce inpreflight, uploaded a tarball artifact (retention-days: 7), and extracted + passed--skip-buildinwindows,macos, andlinuxusing relative paths so GNUtarworks on Windows Git Bash.ELECTRON_SKIP_BINARY_DOWNLOAD=1during rootvp install(leaving staged packaging untouched), switched platform jobs to shallow checkout, and added Electron,electron-builder, andTrustedSigningcaching towindows.setup-vp,vp install, and manifest merge inpublishwhenneeds_mac_manifest_merge != 'true', passingGH_REPOsogh release editworks without a checkout..github/workflows/npm-package.ymlto apply channel-appropriate brand assets inpack, upload the smoke-tested tarball (retention-days: 7), and publish that exact tarball inpublishwith Node 24 (cache: false) for npm OIDC trusted publishing.