{"_id":"emdash-updater","_rev":"5-633ad1668173b0f20abd41da399e1c40","name":"emdash-updater","dist-tags":{"latest":"1.2.0"},"versions":{"0.0.0-stage":{"name":"emdash-updater","version":"0.0.0-stage","_id":"emdash-updater@0.0.0-stage","stub":true,"maintainers":[{"name":"swissky","email":"kevin@kyburz.email"}],"dist":{"shasum":"e53fd5f112a829db22c7712cae6bbdee3e71a8f6","tarball":"https://registry.npmjs.org/emdash-updater/-/emdash-updater-0.0.0-stage.tgz","fileCount":2,"integrity":"sha512-6s1qCmRveRxCt4EUpCFkcyCWW0JEpk6SuR2oR87CRlMkG6ahx4bLR6DKgRn7YHh0qor8Yr0g8VayKrse5z2lIw==","signatures":[{"sig":"MEYCIQDA5+6Sg7LxePc1N8MY98X0nv6+SkyjQ3O1oQL1Ki8zJgIhAIBYRcUyai1rQAcguRyjBeIXn1aFZ/FUbWI9az/Wfr2O","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":336},"_npmUser":{"name":"swissky","email":"kevin@kyburz.email"},"description":"Temporary package placeholder for staged publishing","directories":{}},"1.0.0":{"name":"emdash-updater","version":"1.0.0","keywords":["emdash","emdash-plugin","astro","cms","updater"],"author":{"url":"https://github.com/swissky","name":"Kevin Kyburz"},"license":"GPL-3.0-or-later","_id":"emdash-updater@1.0.0","maintainers":[{"name":"swissky","email":"kevin@kyburz.email"}],"homepage":"https://github.com/swissky/emdash-updater#readme","bugs":{"url":"https://github.com/swissky/emdash-updater/issues"},"dist":{"shasum":"a8580dc9ed4c8905dbc33406914c64a104935763","tarball":"https://registry.npmjs.org/emdash-updater/-/emdash-updater-1.0.0.tgz","fileCount":24,"integrity":"sha512-EXwDK0H0U2HEVzVErXHW5loeb2llZT76ODMsWGclHvmfbgRFNdVnSyis0tlvj2HP2oJz/uiLE9zFVaAjEcqS3g==","signatures":[{"sig":"MEUCIQDeCVcLYk9Fc2aAazA3+JiiztljMLH+1tzaDVcR4wM3nQIgT2XHAUzmcOBcymRiLSnm7iEtLZngImAw4aeQA6QFvUs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIGyE9rnEtGKTxRROYJACN6D/u23kYJaki0bMAt/9tSayAiBxmYQ/HMEd/a3MEt6fxG6uyaC9cC8xkdwjv8hrqK8J0Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":174826},"type":"module","engines":{"node":">=22.13.0"},"exports":{".":"./src/index.ts","./admin":"./src/admin.tsx","./astro":"./src/astro.ts","./worker":"./src/worker.ts"},"gitHead":"2697ee6a206f2a3b93e32386c5e5c7e94869f171","scripts":{"test":"node test/admin-render.test.mjs && node test/status.test.mjs && node --experimental-strip-types test/refresh.test.ts && node --experimental-strip-types test/versions.test.ts && node --experimental-strip-types test/preview-login.test.ts && node --experimental-transform-types test/github.test.ts && node --experimental-strip-types --test test/astro.test.mjs test/preview-sql.test.mjs test/cleanup-rollback.test.mjs"},"_npmUser":{"name":"swissky","email":"kevin@kyburz.email"},"repository":{"url":"git+https://github.com/swissky/emdash-updater.git","type":"git"},"_npmVersion":"10.9.9","description":"Update EmDash from the admin with one click: commits the new versions to GitHub, waits for your hosting to deploy, and can undo.","directories":{},"_nodeVersion":"22.23.4","_hasShrinkwrap":false,"devDependencies":{"astro":"^7.3.2","react":"19.2.4","emdash":"^1.4.0","esbuild":"^0.28.2","wrangler":"^4.125.0","react-dom":"19.2.4","@lingui/core":"^5.9.5","@lingui/react":"^5.9.5","@cloudflare/kumo":"2.6.0"},"peerDependencies":{"astro":">=6","react":">=19","emdash":">=1.3.0","wrangler":">=4.125.0","@lingui/core":"^5.9.0","@lingui/react":"^5.9.0","@cloudflare/kumo":"^2.6.0","@emdash-cms/cloudflare":">=1.3.0"},"peerDependenciesMeta":{"wrangler":{"optional":true},"@emdash-cms/cloudflare":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/emdash-updater_1.0.0_1793625288974_0.23154873126781728","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"emdash-updater","version":"1.1.0","keywords":["emdash","emdash-plugin","astro","cms","updater"],"author":{"url":"https://github.com/swissky","name":"Kevin Kyburz"},"license":"GPL-3.0-or-later","_id":"emdash-updater@1.1.0","maintainers":[{"name":"swissky","email":"kevin@kyburz.email"}],"homepage":"https://github.com/swissky/emdash-updater#readme","bugs":{"url":"https://github.com/swissky/emdash-updater/issues"},"dist":{"shasum":"1e85946befb31528ff4b9e41cfeb398dcc62f6af","tarball":"https://registry.npmjs.org/emdash-updater/-/emdash-updater-1.1.0.tgz","fileCount":24,"integrity":"sha512-eXHT3n+k5NQVlSS94a1vYM9ivxYaWEN7i+xc8hhXe7xUQD4kTHXW8wwa4dNFYRcm6J1VGMzjrezEO1ynXStb2A==","signatures":[{"sig":"MEQCIGFqnxkyZ4TXX0WedRK+lSzqgEpbPe6HIS6TuTlNj8nBAiAmxF2fe+79PVGTcCwpDE83hs4IId3bbi3yaQF7h6Kp1Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIHfNg5ffb7udje8COMzJkhvgt1TBHyRb4+EY9d+rE1TFAiEAib8UvXZVC/NvsNYhaec6GhT2v9QbDcrcAm24AmB7ccM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":178283},"type":"module","engines":{"node":">=22.13.0"},"exports":{".":"./src/index.ts","./admin":"./src/admin.tsx","./astro":"./src/astro.ts","./worker":"./src/worker.ts"},"gitHead":"e73c38c55697893a2a2af969052e5f009405acda","scripts":{"test":"node test/admin-render.test.mjs && node test/status.test.mjs && node --experimental-strip-types test/refresh.test.ts && node --experimental-strip-types test/versions.test.ts && node --experimental-strip-types test/preview-login.test.ts && node --experimental-transform-types test/github.test.ts && node --experimental-strip-types --test test/astro.test.mjs test/preview-sql.test.mjs test/cleanup-rollback.test.mjs"},"_npmUser":{"name":"swissky","email":"kevin@kyburz.email"},"repository":{"url":"git+https://github.com/swissky/emdash-updater.git","type":"git"},"_npmVersion":"10.9.9","description":"Update EmDash from the admin with one click: commits the new versions to GitHub, waits for your hosting to deploy, and can undo.","directories":{},"_nodeVersion":"22.23.4","_hasShrinkwrap":false,"devDependencies":{"astro":"^7.3.2","react":"19.2.4","emdash":"^1.4.0","esbuild":"^0.28.2","wrangler":"^4.125.0","react-dom":"19.2.4","@lingui/core":"^5.9.5","@lingui/react":"^5.9.5","@cloudflare/kumo":"2.6.0"},"peerDependencies":{"astro":">=6","react":">=19","emdash":">=1.3.0","wrangler":">=4.125.0","@lingui/core":"^5.9.0","@lingui/react":"^5.9.0","@cloudflare/kumo":"^2.6.0","@emdash-cms/cloudflare":">=1.3.0"},"peerDependenciesMeta":{"wrangler":{"optional":true},"@emdash-cms/cloudflare":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/emdash-updater_1.1.0_1793627148261_0.7536517748129935","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"emdash-updater","version":"1.1.1","keywords":["emdash","emdash-plugin","astro","cms","updater"],"author":{"url":"https://github.com/swissky","name":"Kevin Kyburz"},"license":"GPL-3.0-or-later","_id":"emdash-updater@1.1.1","maintainers":[{"name":"swissky","email":"kevin@kyburz.email"}],"homepage":"https://github.com/swissky/emdash-updater#readme","bugs":{"url":"https://github.com/swissky/emdash-updater/issues"},"dist":{"shasum":"711429a3052428ef1f3ff9493bc3d34711757fbd","tarball":"https://registry.npmjs.org/emdash-updater/-/emdash-updater-1.1.1.tgz","fileCount":24,"integrity":"sha512-IHnsAEHtCDRWDtA73Rx8acKilhbqSSUdyVTqmzqC3+liV7Q+btp8itChovjIdUHHrdKcK9HAxSKVoQ3RJWUEuw==","signatures":[{"sig":"MEYCIQCkr2YgTCRuWHnWvQwwVhf/4R3adK296RqXn6Jn1ViCFAIhAOU3EjG/ZeEEGeCYf89i3QbD7AGJfMkh3du6BJ4nE5j6","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIDs+OC9Cat0bKEtb7tqqblw+OCCVxTSbLsBSJAYHV2/OAiAObhXXRSNVQTeYTrKd4xbrVvA7CgAnkQvZMD+OTVEsGg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":178608},"type":"module","engines":{"node":">=22.13.0"},"exports":{".":"./src/index.ts","./admin":"./src/admin.tsx","./astro":"./src/astro.ts","./worker":"./src/worker.ts"},"gitHead":"3659e53cdb58a4f34a37075c4adf173083876889","scripts":{"test":"node test/admin-render.test.mjs && node test/status.test.mjs && node --experimental-strip-types test/refresh.test.ts && node --experimental-strip-types test/versions.test.ts && node --experimental-strip-types test/preview-login.test.ts && node --experimental-transform-types test/github.test.ts && node --experimental-strip-types --test test/astro.test.mjs test/preview-sql.test.mjs test/cleanup-rollback.test.mjs"},"_npmUser":{"name":"swissky","email":"kevin@kyburz.email"},"repository":{"url":"git+https://github.com/swissky/emdash-updater.git","type":"git"},"_npmVersion":"10.9.9","description":"Update EmDash from the admin with one click: commits the new versions to GitHub, waits for your hosting to deploy, and can undo.","directories":{},"_nodeVersion":"22.23.4","_hasShrinkwrap":false,"devDependencies":{"astro":"^7.3.2","react":"19.2.4","emdash":"^1.4.0","esbuild":"^0.28.2","wrangler":"^4.125.0","react-dom":"19.2.4","@lingui/core":"^5.9.5","@lingui/react":"^5.9.5","@cloudflare/kumo":"2.6.0"},"peerDependencies":{"astro":">=6","react":">=19","emdash":">=1.3.0","wrangler":">=4.125.0","@lingui/core":"^5.9.0","@lingui/react":"^5.9.0","@cloudflare/kumo":"^2.6.0","@emdash-cms/cloudflare":">=1.3.0"},"peerDependenciesMeta":{"wrangler":{"optional":true},"@emdash-cms/cloudflare":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/emdash-updater_1.1.1_1793628246021_0.40352057497812843","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"_id":"emdash-updater@1.2.0","bugs":{"url":"https://github.com/swissky/emdash-updater/issues"},"dist":{"shasum":"873b01f2918dc337465ab695ca438594a837ad3b","tarball":"https://registry.npmjs.org/emdash-updater/-/emdash-updater-1.2.0.tgz","fileCount":24,"integrity":"sha512-zHcEMPg1bhcYKMG4+WGC+WPNv9tgF9e9a2EtkGLh0LsZlKHt9AIVx4Jn1rMFkB9qciwsHdDx7BTXhPjH+FbXeA==","signatures":[{"sig":"MEYCIQCyOWtgzlaqXP41nJbgki38qtU4h5Fsv8LRMreWJeWb5wIhAIF0Ooez7BPPdZzx+upRt1hzR8lJEx1A3iReR4jwRbQa","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICuwbwWKO8yZgWW5/TEmP4aT5DLgTYkOnd06BGsc+60hAiAn2E5QSF6LMoS4Jd/bEjTBBKFJjcGkUkGJu1p2crYezA=="}],"unpackedSize":180415},"name":"emdash-updater","type":"module","author":{"url":"https://github.com/swissky","name":"Kevin Kyburz"},"engines":{"node":">=22.13.0"},"exports":{".":"./src/index.ts","./admin":"./src/admin.tsx","./astro":"./src/astro.ts","./worker":"./src/worker.ts"},"gitHead":"e04f28dedb2c15d7d16df0a64e5008ddf5beeafa","license":"GPL-3.0-or-later","scripts":{"test":"node test/admin-render.test.mjs && node test/status.test.mjs && node --experimental-strip-types test/refresh.test.ts && node --experimental-strip-types test/versions.test.ts && node --experimental-strip-types test/preview-login.test.ts && node --experimental-transform-types test/github.test.ts && node --experimental-strip-types --test test/astro.test.mjs test/preview-sql.test.mjs test/cleanup-rollback.test.mjs"},"version":"1.2.0","_npmUser":{"name":"swissky","email":"kevin@kyburz.email"},"homepage":"https://github.com/swissky/emdash-updater#readme","keywords":["emdash","emdash-plugin","astro","cms","updater"],"repository":{"url":"git+https://github.com/swissky/emdash-updater.git","type":"git"},"_npmVersion":"10.9.9","description":"Update EmDash from the admin with one click: commits the new versions to GitHub, waits for your hosting to deploy, and can undo.","directories":{},"maintainers":[{"name":"swissky","email":"kevin@kyburz.email"}],"_nodeVersion":"22.23.4","_hasShrinkwrap":false,"devDependencies":{"astro":"^7.3.2","react":"19.2.4","emdash":"^1.4.0","esbuild":"^0.28.2","wrangler":"^4.125.0","react-dom":"19.2.4","@lingui/core":"^5.9.5","@lingui/react":"^5.9.5","@cloudflare/kumo":"2.6.0"},"peerDependencies":{"astro":">=6","react":">=19","emdash":">=1.3.0","wrangler":">=4.125.0","@lingui/core":"^5.9.0","@lingui/react":"^5.9.0","@cloudflare/kumo":"^2.6.0","@emdash-cms/cloudflare":">=1.3.0"},"peerDependenciesMeta":{"wrangler":{"optional":true},"@emdash-cms/cloudflare":{"optional":true}},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/emdash-updater_1.2.0_1793630158210_0.5980993424395792"}}},"time":{"created":"2026-11-02T13:13:32.062Z","modified":"2026-11-02T14:35:58.542Z","0.0.0-stage":"2026-11-02T13:13:32.062Z","1.0.0":"2026-11-02T13:14:49.070Z","1.1.0":"2026-11-02T13:45:48.348Z","1.1.1":"2026-11-02T14:04:06.144Z","1.2.0":"2026-11-02T14:35:58.336Z"},"bugs":{"url":"https://github.com/swissky/emdash-updater/issues"},"author":{"url":"https://github.com/swissky","name":"Kevin Kyburz"},"license":"GPL-3.0-or-later","homepage":"https://github.com/swissky/emdash-updater#readme","keywords":["emdash","emdash-plugin","astro","cms","updater"],"repository":{"url":"git+https://github.com/swissky/emdash-updater.git","type":"git"},"description":"Update EmDash from the admin with one click: commits the new versions to GitHub, waits for your hosting to deploy, and can undo.","maintainers":[{"name":"swissky","email":"kevin@kyburz.email"}],"readme":"# EmDash Updater\n\nUpdate [EmDash](https://emdashcms.com) from the admin with one click. The plugin commits the new versions to your GitHub repository, waits until your hosting has deployed them, and lets you undo the update.\n\n[![Updating an EmDash site from 1.3.1 to 1.4.0 in the admin, then undoing it (sped up)](https://raw.githubusercontent.com/swissky/emdash-updater/main/docs/demo.gif)](https://github.com/swissky/emdash-updater/blob/main/docs/demo.mp4)\n\n[Watch the full video](https://github.com/swissky/emdash-updater/blob/main/docs/demo.mp4)\n\n![The Updates page showing EmDash 1.3.1 installed and 1.4.0 available](docs/update-available.jpg)\n\n## What it does\n\n- Shows which EmDash packages are installed and which newer versions are out.\n- **Update now** writes the new versions to `package.json` (and your lockfile) on your live branch. Your hosting builds and deploys as usual; database migrations run on the first request.\n- Offers a database backup download before the update starts.\n- Watches the build your hosting reports to GitHub. If it fails, the plugin shows the failure and puts the previous versions back when you click **Discard**.\n- **Undo update** returns to the versions you had before, in one click.\n- On Cloudflare Workers with D1, every update can first run as a **test version** with a copy of your content. You open it, check it, and only then apply it to the live site.\n\n![The confirmation dialog with the backup download before updating](docs/update-confirm.jpg)\n\n![The Updates page after the update, with the undo button](docs/update-done.jpg)\n\n## Requirements\n\n- EmDash 1.3 or later, Node.js 22.13 or later.\n- The site's code lives in a **GitHub** repository.\n- Your hosting deploys automatically when that repository changes (Cloudflare Workers Builds, Render, Vercel, Netlify, Coolify, a GitHub Actions deploy, and similar).\n\n## Install\n\n```bash\nnpm install emdash-updater\n```\n\nAdd the integration and the plugin in `astro.config.mjs`:\n\n```js\nimport { defineConfig } from \"astro/config\";\nimport emdash from \"emdash/astro\";\nimport updater from \"emdash-updater/astro\";\nimport { updaterPlugin } from \"emdash-updater\";\n\nexport default defineConfig({\n\tintegrations: [\n\t\tupdater(),\n\t\temdash({\n\t\t\t// your database, storage, ...\n\t\t\tplugins: [updaterPlugin()],\n\t\t}),\n\t],\n});\n```\n\nKeep `updater()` before `emdash()`. Commit, push, and let your hosting deploy.\n\n### Only let some people update\n\nBy default every Admin can run updates. On a client site where you look after updates yourself, list the people who may:\n\n```js\nplugins: [updaterPlugin({ allowedUsers: [\"you@agency.com\"] })],\n```\n\nOther Admins still see the installed and available versions, with a note that you manage updates. Every update action refuses them with a 403. Leave the plugin out of `astro.config.mjs` if the Updates page should not appear at all.\n\n### Cloudflare Workers: test versions\n\nTest versions need Cloudflare Workers Builds connected to your GitHub repository, with builds for non-production branches turned on. Point `main` in `wrangler.jsonc` at a worker file that re-exports the plugin's worker:\n\n```ts\n// src/worker.ts\nexport { default, PluginBridge } from \"emdash-updater/worker\";\n```\n\nThe plugin turns test versions on when it finds a `wrangler.jsonc`. To update straight to the live site instead, use `updater({ previews: false })`.\n\n## Connect GitHub\n\n1. Open **Admin > Plugins > Updates** and click **Connect GitHub**.\n2. GitHub asks you to create a private GitHub App for your site. The app belongs to your account, not to anyone else. Its key is stored encrypted in the plugin settings.\n3. Install the app on the repository your site is built from, then pick that repository in the admin.\n\nThe app asks for these permissions:\n\n| Permission | Why |\n| --- | --- |\n| Contents: read and write | Commit the new versions and undo them |\n| Workflows: read and write | Add the workflow that updates your lockfile |\n| Checks, commit statuses, deployments: read | Read whether your hosting's build succeeded |\n\nIf you connected before the workflow permission existed, the Updates page shows an **Allow on GitHub** link. Accept the new permission there once.\n\n## Lockfiles\n\nWhen your repository has a `package-lock.json`, `pnpm-lock.yaml`, `yarn.lock` or `bun.lock`, the plugin does not touch your live branch right away. It pushes the update to the branch `emdash-update-lockfile`, where a small GitHub Actions workflow (`.github/workflows/emdash-updater-lockfile.yml`, added by the plugin) updates the lockfile. The plugin checks that the workflow changed only the lockfile, then moves your live branch forward to that commit. Your hosting builds once, with `package.json` and the lockfile in sync, so `npm ci` keeps working.\n\n## Undo and your database\n\n**Undo update** restores `package.json` and the lockfile to the previous versions. Database changes made by the newer version stay in place. EmDash migrations only add to the schema, and older versions keep working with a newer database. On Cloudflare with test versions, undo can also restore the D1 database to the moment before the update (D1 Time Travel, up to 7 days on the Free plan).\n\nUndo still works when `main` got more commits after the update, as long as they left `package.json` and the lockfile as the update wrote them.\n\nDownload the backup offered before each update if you want a copy you control.\n\n## Hosting\n\n| Hosting | Mode |\n| --- | --- |\n| Cloudflare Workers Builds with D1 | Test version first, then apply |\n| Render, Vercel, Netlify, Coolify | Straight to live |\n| Docker on your own server | Straight to live, when a GitHub push triggers your deploy (for example a GitHub Actions workflow that rebuilds the container) |\n\nThe plugin reads the build result from GitHub check runs, commit statuses or deployments. If your hosting reports none, the plugin shows the update as waiting and gives you the way back after 15 minutes.\n\n### Docker on your own server\n\nThe plugin never connects to your server. It commits to GitHub, and your deploy picks up the push. A small, safe setup:\n\n1. Run the site with Docker Compose and keep the database and the sessions on a volume:\n\n   ```yaml\n   # compose.yaml\n   services:\n     site:\n       build: .\n       restart: unless-stopped\n       env_file: .env\n       ports:\n         - \"127.0.0.1:4321:4321\"\n       volumes:\n         - data:/app/data\n   volumes:\n     data:\n   ```\n\n   ```js\n   // astro.config.mjs\n   import { defineConfig, sessionDrivers } from \"astro/config\";\n\n   export default defineConfig({\n   \tsession: { driver: sessionDrivers.fsLite({ base: \"./data/sessions\" }) },\n   \t// ...\n   });\n   ```\n\n   Without a persistent session store, every rebuild of the container signs everyone out. The Updates page then sends you to the sign-in and back; the update status is kept. With several containers, use a shared store such as Redis instead.\n\n2. Put a deploy script on the server that pulls `main` and rebuilds:\n\n   ```sh\n   #!/bin/sh\n   # deploy/deploy.sh\n   set -eu\n   cd \"$(dirname \"$0\")/..\"\n   git fetch --quiet origin main\n   git reset --quiet --hard origin/main\n   docker compose up -d --build --remove-orphans\n   ```\n\n3. Create an SSH key that can run only this script. Add its public key to `~/.ssh/authorized_keys` on the server:\n\n   ```\n   command=\"/path/to/site/deploy/deploy.sh\",no-pty,no-port-forwarding,no-agent-forwarding,no-X11-forwarding ssh-ed25519 AAAA... deploy\n   ```\n\n4. Add a workflow that runs the script on every push to `main`. Store the private key, `user@host` and the output of `ssh-keyscan <host>` as the secrets `DEPLOY_SSH_KEY`, `DEPLOY_HOST` and `DEPLOY_KNOWN_HOSTS`:\n\n   ```yaml\n   # .github/workflows/deploy.yml\n   name: Deploy\n   on:\n     push:\n       branches: [main]\n   concurrency: deploy\n   jobs:\n     deploy:\n       runs-on: ubuntu-latest\n       steps:\n         - env:\n             SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }}\n             SSH_HOST: ${{ secrets.DEPLOY_HOST }}\n             SSH_KNOWN_HOSTS: ${{ secrets.DEPLOY_KNOWN_HOSTS }}\n           run: |\n             mkdir -p ~/.ssh\n             echo \"$SSH_KEY\" > ~/.ssh/id_ed25519\n             echo \"$SSH_KNOWN_HOSTS\" > ~/.ssh/known_hosts\n             chmod 600 ~/.ssh/id_ed25519\n             ssh \"$SSH_HOST\" deploy\n   ```\n\nThe workflow run is reported to GitHub as a check, so the Updates page shows when the new version is live.\n\n## License\n\nGPL-3.0-or-later. See [LICENSE](LICENSE).\n","readmeFilename":"README.md"}