A repo not on GitHub
Experimental.
plancia publishis tested against the web app’s own code with a fake server, but has not yet fed a deployed instance from a real CI. A body larger than the host accepts (4.5 MB compressed on Vercel) is refused. Reports are welcome.
On GitLab, Gitea or a server of your own, the web app cannot fetch the push, so the repo sends its index instead. The workspace is created as for a GitHub repo (Linking a repo; its owner/repo is only a name there), then:
npm run admin -w @plancia/web -- create-token owner/repo # shown once: keep it as a secretWherever the repo is checked out, with Node 20 or later:
PLANCIA_URL=https://your-plancia.example.com PLANCIA_TOKEN=plc_… npx plancia-cli publishIt indexes the commit on the remote (the branch’s upstream, or HEAD in a CI checkout; --ref <rev> names another), never the uncommitted changes, and sends it with the commits of the last 30 days. --dry-run says what it would send without sending it. Run it by hand after a push, or as a step of the CI on the workspace’s branch, with the token in the CI’s secrets. A GitLab job, for example:
plancia: image: node:22 rules: - if: $CI_COMMIT_BRANCH == "main" script: - npx plancia-cli publishwith PLANCIA_URL and PLANCIA_TOKEN as CI/CD variables (the token masked). The token goes only in the environment, never on the command line. revoke-token owner/repo stops it.