This repository has been archived by the owner on Nov 29, 2022. It is now read-only.
Update docs when a new Electron release becomes latest
#830
Labels
area:docs
Issues or Pull Requests related to /docs page on website
enhancement
New feature or request
When a new version of Electron is published to npm and tagged with the
latest
dist-tag, it should be displayed on the website right away. One way to solve this would be to make the website update and publish theelectron-i18n
module,data/versions.json
, anddata/releases.json
in response to an npm publish hook.That flow could look something like this:
Set up npm and Heroku buildpacks that will create a
.netrc
so the app cangit push
to GitHub and a.npmrc
so the app cannpm publish
:Set up an npm hook. Point the hook at
POST /publish
or similar and store the npm hook shared secret in an env var.In the hook handler, run
npm run release
in an async child process.The release script (which already exists from the Jekyll days) should be updated to do something like this:
The text was updated successfully, but these errors were encountered: