super-productivity/.github/actions
Johannes Millan ce5c27c24c
ci(electron-build): cache electron binary + retry npm i to fix flaky install (#8487)
CI run 27780507031 failed when electron's npm postinstall timed out
(ETIMEDOUT) downloading its prebuilt binary from GitHub. Harden every
Electron build/package job against that transient failure.

- New composite action .github/actions/setup-electron-build: node 22, the
  git-over-HTTPS workaround, and a combined npm-registry + electron-binary
  cache (warm runs skip the flaky download). The electron cache dir is
  OS-specific, so all three are listed; actions/cache ignores absent ones.
- Each job retries `npm i` via nick-fields/retry (the repo's existing
  idiom) under shell:bash, dropping node_modules/electron between attempts
  so npm actually re-runs the postinstall (verified: npm skips scripts for
  an already-present package).
- mac/windows run `npm install @nx/<platform>` before `npm i`; since
  `npm install <pkg>` reifies the whole tree, electron downloads in that
  step, so the nx workaround is folded into the same retried command.

Routed through the composite: electron-smoke (linux), build.yml
(linux/mac/windows), manual-build (windows/mac), test-mac-dmg.
2026-06-19 13:02:33 +02:00
..
setup-e2e ci(e2e): retry npm install to absorb Prisma postinstall ECONNRESET 2026-06-17 14:35:12 +02:00
setup-electron-build ci(electron-build): cache electron binary + retry npm i to fix flaky install (#8487) 2026-06-19 13:02:33 +02:00