script/release/bin/README.md
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.
cleanup-releaseThis script completely reverts a failed or otherwise unreleasable version. It does this by:
[!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-versionThis script just outputs the theoretical "next" version that a release would use.
prepare-for-releaseThis script creates all the requisite tags and CI builds that will populate required release assets.
run-release-buildThis 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-publishThis script ensures that a release is in a valid state before publishing it anywhere. Specifically it checks:
publish-to-githubThis script finalizes the GitHub release, in the process it:
index.json file on the assets CDN with the new version via metadumperpublish-to-npmThis script finishes the release process by publishing a new npm package.