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

Related how-tos

Report a problem with this page