Pando Exchange Docs Build your marketplace
On this page

Run

Updates

How a new release reaches your repository as a pull request, what an update may and may not change, and how to update by hand.

How updates arrive#

Your site's code is a copy of the template in your own Git account. Pando publishes releases of the template; a release reaches your production site only through a change you merge and deploy.

  • On GitHub, a weekly workflow in your repository looks for a newer final release. For a routine update it opens a pull request with the changelog and a summary. When a change needs approval by hand (files that run, a new template address or a new major version) it opens an issue instead, without pushing a branch.
  • On GitLab or Bitbucket, or whenever you choose, run the update by hand.

Nothing merges by itself. The updater fetches from the template repository named in your release manifest, and calls nothing else of Pando's. Merging deploys to production only if that branch is connected to Workers Builds; for a Worker you deploy by hand, review the merged release and run npm run deploy yourself. A pushed review branch can run on a connected preview before you merge, so turn previews off first (below). Your site's /setup page shows the release it is running.

Not verified. The release and update steps have been run against local Git repositories and a stand-in for the GitHub command-line tool only. They have not been run against GitHub or a real hosted repository.

What an update may change#

Every file belongs to one of three layers, decided by its path:

Layer What it is What an update does
Engine Everything outside themes/: venue reads, orders, simulation, setup, wallet review Replaced by the release's version. If you edited an engine file, the updater stops and names it
Design Files under themes/<design>/ A file you left alone takes the new default. A file you edited is merged with the release's change where Git can; on a conflict your file is kept byte for byte and listed for your review
Settings Your stored settings, on your site Untouched. An update changes repository files only

Three values Cloudflare may write into wrangler.jsonc are yours and carried forward: the Worker's name, the account_id and the media bucket's name. Any other change there counts as an engine edit.

Before the first update#

Pushing a branch to a connected repository can run its code on your host before you review it. In your Worker's Settings, Build, Branch control, turn off preview builds, and keep runtime secrets in Settings, Variables and Secrets rather than build variables.

On GitHub, allow the workflow to open pull requests: Settings, Actions, General, Workflow permissions, Allow GitHub Actions to create and approve pull requests, and enable Issues.

Updating by hand#

These commands come with a tagged release of the template: run them at its repository root, on your marketplace branch, with your design changes committed.

bash
node check-release.mjs
npm run update

node check-release.mjs compares your files with the release manifest (release.json) and lists the design files you changed. npm run update fetches the latest final release as Git objects, checks them against its manifest and prepares a local review branch while you stay on your own. It prints a git diff command and a summary. Run the printed command with --stat added to read the summary of changes, then run it unchanged to read the full diff.

The summary lists the design files updated, removed, merged, and those that need your hand, with a short preview of each. Check the full diff for changes to dependencies, network destinations, wallet requests and fee recipients: the summary cannot say what the code will do. Then run node check-release.mjs on the review branch and merge.

Options, after npm run update --, once you have read why the updater stopped:

Option What it allows
--keep-going Prepares the branch despite your engine edits, which the proposed branch may replace
--allow-files-that-run Changes to workflows, package files, updater scripts and host build files
--allow-repository <address> A new template address, confirmed exactly
--allow-prerelease Prereleases
--allow-major A higher major version

What the checks can and cannot tell you#

The manifest's hashes catch hand edits and broken downloads. Someone who took over the template repository could change both the files and the manifest, so your protection is reading the full pull request before you merge. Signed release tags are not built yet.

Next#

Pando Exchange is software published by Simple Things Ltd. Each marketplace made with it is run by its operator, in the operator's own account.