Files
Samuel Attard 218544d32e build: replace npx with lockfile-pinned binaries (#50717)
build: replace npx with lockfile-pinned binaries (#50598)

* build: replace npx with lockfile-pinned binaries

- nan-spec-runner: reorder yarn install first, invoke nan node-gyp bin directly
- publish-to-npm: use host npm with E404 try/catch (closes existing TODO)
- upload-symbols: add @sentry/cli devDep, invoke from node_modules/.bin
- remove script/lib/npx.py (dead since #48243)

* build: bump @sentry/cli to 1.70.0 for arm support

* build: bump @sentry/cli to 1.72.0, skip CDN download on test jobs

@sentry/cli fetches its platform binary from Sentry CDN at postinstall.
Only upload-symbols.py (release pipeline) needs the binary; set
SENTRYCLI_SKIP_DOWNLOAD=1 in the two test-segment workflows that
call install-dependencies. The 64k variant uses pre-built artifacts
and does not install deps.
2026-04-06 16:07:36 -04:00
..

Release Scripts

These ancient artifacts date back to the early days of Electron, they have been modified over the years but in reality still very much look how they did at the beginning. You have been warned.

None of these scripts are called manually, they are each called by Sudowoodo at various points in the Electron release process. What each script does though is loosely documented below, however this documentation is a best effort so please be careful when modifying the scripts as there still may be unknown or undocumented effects / intentions.

What scripts do we have?

cleanup-release

This script completely reverts a failed or otherwise unreleasable version. It does this by:

  • Deleting the draft release if it exists
  • Deleting the git tag if it exists

Note

This is the only script / case where an existing tag will be deleted. Tags are only considered immutable after the release is published.

print-next-version

This script just outputs the theoretical "next" version that a release would use.

prepare-for-release

This script creates all the requisite tags and CI builds that will populate required release assets.

  • Creates the git tag
  • Kicks off all release builds on GitHub Actions

run-release-build

This script is used to re-kick specific release builds after they fail. Sudowoodo is responsible for prompting the release team as to whether or not to run this script.

validate-before-publish

This script ensures that a release is in a valid state before publishing it anywhere. Specifically it checks:

  • All assets exist
  • All checksums match uploaded assets
  • Headers have been uploaded to the header CDN
  • Symbols have been uploaded to the symbol CDN

publish-to-github

This script finalizes the GitHub release, in the process it:

  • Uploads the header SHASUMs to the CDN
  • Updates the index.json file on the assets CDN with the new version via metadumper
  • Publishes the actual GitHub release

publish-to-npm

This script finishes the release process by publishing a new npm package.