EmDash and plugin updates
Fleet shows which EmDash and plugin versions each site runs and commits an update to your repository.
What it is
An update changes the EmDash or plugin version in a site's repository, not on the live site. Fleet prepares the new package.json and package-lock.json in GitHub Actions and commits them. The usual deploy then puts the new code live. No Fleet code runs on a site.
How it works in Fleet
What Fleet checks. Every hour Fleet reads the newest stable EmDash release, the newest version of each plugin from the npm registry and the security advisories for the versions your sites run. It lists a site's plugins from package.json and astro.config.mjs, read on every deploy and update. A plugin installed from the EmDash registry is not in those files. It shows "not visible to Fleet", with the hint "Connect site admin to see them".
What you see. The Plugins tab lists every plugin of every site with its installed and latest version. The EmDash Updates tab shows the newest stable release and, for each site, its version and the observation Update available. A plugin with a newer version gives Plugin update available. Each update has an importance:
Importance | When |
|---|---|
Minor | the new version differs by a patch |
Recommended | the new version differs by a minor version |
Important | the new version differs by a major version |
Critical | a security advisory affects the installed version |
Start an update.
- On the Plugins tab, select plugins, or select All sites on a plugin's row, then select Update selected. Select-all covers the whole filtered result. Fleet lists every site with its installed and target version for review before it creates anything.
- On the EmDash Updates tab, update to the latest release or to a version you choose.
- On a site page, Update updates that site.
How it runs. Each site gets one job. Fleet starts the workflow fleet-update.yml in the repository, which installs emdash and @emdash-cms/cloudflare, or the plugin, at the exact version. Fleet downloads the changed files, accepts only the files an update may change (for EmDash, package.json and package-lock.json) and commits them in one commit:
- On a site in direct mode, Fleet commits to the default branch and then deploys. EmDash applies its migrations on the first request.
- Otherwise Fleet commits to the branch
fleet/update-<job_id>and opens a pull request. The default branch does not change.
A failed update leaves the running version unchanged, and the other sites of the request go on. The job shows the reason, such as a missing fleet-update.yml, a default branch that changed during preparation or a protected default branch. See The build failed or did not finish.
Rules and limits
- An update runs only when you start it.
- Fleet refuses a whole request, and creates nothing, when a site in it cannot be updated.
- An update needs the Developer role or above and an active
fleet-update.ymlin the repository. - The run uses your GitHub Actions allowance. See Builds and the GitHub Actions allowance.
- To undo a live update, roll back. See Versions, recovery points and rollback.