Skip to content
DocsFor version 1.1.x

Updating SixtyList

SixtyList gets new releases: fixes, new features and security updates. Updating brings them into your copy and keeps what’s yours: your listings and the rest of your content, your page wording, your settings, your logo and images.

Every release is in the Changelog, with anything you need to do after updating.

  • Read what’s new. Your version is in package.json ("version"). The Changelog lists every release since.
  • Choose a way. In your browser needs nothing installed: GitHub does the update and opens a pull request for you to look at. With the Terminal needs Git and Node.js (as for the Terminal setup), and this computer signed in to GitHub as the account that was invited when you bought SixtyList. Commit everything first: the update won’t start with uncommitted changes, so there’s always a point to go back to.

GitHub runs the update for you, and opens a pull request with it: you look at it, then merge it. Nothing changes on your site until you do.

  1. On GitHub, run the Update SixtyList workflow in your site’s repository, from its Actions tab (GitHub’s help).
  2. The first time, it stops after a few seconds and asks for an update key: a read-only key that lets your copy read SixtyList’s releases. Click the run to see its summary, and follow it:
    1. Open the link it gives you, signed in as the account that was invited to SixtyList. GitHub’s form for a new key opens, already filled in. Under Repository access, choose All repositories (the key can only read), make the key, and copy it.
    2. Save it in your repository as an Actions secret named SIXTYLIST_UPDATE_TOKEN: the summary links straight to the form (GitHub’s help).
    3. Run the update again (step 1).
  3. It takes a few minutes. Then it opens a pull request called Update SixtyList to the new version (like Update SixtyList to 1.2.0), with what’s new, anything kept as you had it, and the checks it ran.
  4. Look at the preview your host builds for the pull request, then click Merge pull request. Your site updates as with any change.

If GitHub doesn’t let it open the pull request, the run says so, with a link to the setting. Turn on Allow GitHub Actions to create and approve pull requests once, in your repository’s Actions settings (GitHub’s help). Then open the update’s pull request from the link in the run’s summary, or run the update again.

If it says there are files to fix, a file was changed both in your copy and in the new release. Its pull request is called Update SixtyList to 1.2.0 (files to fix first) (with your version) and names each file, with a link that opens it in GitHub’s editor. In each, find the lines starting <<<<<<<: your version comes first, then =======, then SixtyList’s, then >>>>>>>. Keep what you need, delete those three marker lines, and click Commit changes. When none are left, merge it.

The key lasts a year. Two weeks before it runs out, each run mentions it. If it has run out, or isn’t right, the run says so and how to make a new one: save it over the old SIXTYLIST_UPDATE_TOKEN.

A Codespace is GitHub’s editor and Terminal in your browser, with nothing to install. Make one for your repository’s main branch (GitHub’s help). The first time, GitHub asks to let it read SixtyList’s template: allow it (no key needed). When it opens, type npm run update in its Terminal, at the bottom, and follow With the Terminal. Personal GitHub accounts get a free monthly allowance of Codespace time.

In your site’s folder:

Terminal window
npm run update

It does the whole update on a new branch, so your site isn’t touched until you choose:

  1. Gets SixtyList’s releases (the first time, it adds a Git remote called upstream).
  2. Finds the release your copy started from, or was last updated to.
  3. Makes the branch update/sixtylist-<version>.
  4. Merges the new release. Your own files keep your changes (see Your files and SixtyList’s); SixtyList’s code is brought up to date.
  5. Installs packages, brings your settings files up to date, then checks and builds the site.
  6. Shows what’s new, and what to do next.

Then look at the site (npm run dev). When you’re happy, bring the update into your site:

Terminal window
git switch main
git merge update/sixtylist-1.2.0
git push

Your host builds and publishes it as usual. To see a preview first, push the branch (git push -u origin update/sixtylist-1.2.0) and open a pull request instead: your host builds a preview of it.

To update to a particular release rather than the latest: npm run update -- --to=1.2.0.

A copy made with Use this template starts with SixtyList’s files but none of its history, so the first update links the two: one commit that records the release your copy started from, and changes no file. After that, every update is an ordinary merge.

If it can’t tell which release your copy started from, it says so. Then give it the version that was in your package.json when you made your copy: npm run update -- --from=1.1.0.

Yours: an update keeps your changes SixtyList’s: an update brings it up to date
src/content/ (listings, categories, tags, regions, collections, your pages and page wording) src/components/, src/lib/, src/layouts/, src/pages/, src/directory-routes/, src/styles/
src/config/settings/, site.config.json, directory.config.json, menu.json, social.json scripts/, adapters/, worker/, and the rest
src/assets/images/ (your logo, your listings’ logos), public/images/icons/ src/assets/demo/ (the demo pages’ images)
wrangler.jsonc package-lock.json (then npm install adds back any packages you added)
  • A settings or wording file (.json) is merged key by key: a new setting arrives, and every value you changed stays. Where SixtyList changed the same value, yours is kept, and the update tells you which.
  • Default theme (1.1.0) is the one exception: for a site made before it, the update sets it to Light, so your site still opens light; choose Follow the visitor’s device when you want that.
  • Any other file of yours stays as you have it if you changed it. A file you removed stays removed.
  • Demo listings: once you’ve removed them all, new demo listings don’t arrive.
  • package.json is merged key by key too, so packages and scripts you added stay.

If you changed SixtyList’s own code, a file SixtyList also changed stops the update (below). Keeping your changes to your own files avoids that.

When a file was changed both in your copy and in the release, the update stops and names it:

The update stopped: this file was changed both in your copy and in SixtyList 1.2.0, so you choose what to keep:
src/components/Header.astro

Open each file. Between <<<<<<< and ======= is your version; between ======= and >>>>>>>, SixtyList’s. Keep what you need, delete the three marker lines, save, then:

Terminal window
npm run update -- --continue

To undo the whole update instead, and go back exactly where you were:

Terminal window
npm run update -- --abort
  • Merge (the default, safer): the release is added to your history, and your main branch moves forward as usual.
  • Rebase (cleaner): npm run update -- --rebase puts your own commits on top of the new release, for a straight history. It rewrites your branch’s history, so using it means replacing your main branch with a force push. Don’t use it if others work on your copy. It’s only for a copy that hasn’t been updated by merging.

The same steps, for anyone who’d rather run Git themselves:

Terminal window
git remote add upstream https://github.com/sixtylist/template.git
git fetch upstream --tags
npm run update -- --git-setup # once: the merge rules that keep your own files as above
git switch -c update/sixtylist-1.2.0
# the first time only: link your copy to the release it started from (no file changes)
git merge -s ours --allow-unrelated-histories -m "Link this copy to SixtyList 1.1.0" v1.1.0
git merge v1.2.0
npm install
npm run settings:migrate -- --upgrade
npm run check && npm run build
  1. Download the release. On GitHub, signed in as the account that was invited, open SixtyList’s releases, pick the version, and download Source code (zip).
  2. Copy SixtyList’s files over yours. From the download, copy everything into your site’s folder except your own files (the left column of the table above). If you added packages to package.json, add them back to the new one.
  3. Remove what SixtyList removed. The release’s Changelog entry names any file to delete.
  4. Install and check: npm install, npm run settings:migrate -- --upgrade, npm run check, npm run build.
  5. Publish it as you publish any change.

SixtyList pins the version of every package it uses and updates them in its releases, tested together. So update SixtyList, not single packages: after an update, npm install installs exactly the versions the release was tested with.

Security fixes: we aim to release a fix within two weeks of a security advisory in Astro, Sveltia or Wrangler, and sooner for serious issues. The Changelog says which release has it.

npm audit lists known problems in packages. If it shows one, check the Changelog for a release that fixes it. Some it lists only matter while your site builds, not to visitors: the release notes say when that’s the case. To update a single package yourself, npm install name@version, then check and build: an update keeps your change to package.json.

  • Check and build: npm run check, npm run build. The update runs both, and says if either failed.
  • What your host needs: npm run doctor says if a release needs something new there, like a new setting or key.
  • Look at the site: npm run dev, or the preview of your pull request: the homepage, a listing, the submit form, your editor.
  • Then publish it: merge into main and push.

These docs describe SixtyList 1.1.x.