Skip to content

How to release a version of Mirador

Marlo Longley edited this page Sep 30, 2026 · 15 revisions

Prepare

Before releasing, ensure that you're on the main branch. Run all tests and ensure that they pass. Also check the continuous integration workflow to make sure tests are passing.

$ npm run test

Record the new version in package.json and package-lock.json

Note: Mirador uses Semantic Versioning to determine version numbers.

  1. Locally, prepare a PR to update the version number in ./package.json and at the top of ./package-lock.json. I usually create a local branch that will NOT conflict with the Github tag name (explained below). The only rule here is don't name your branch v4.x.x.
  2. You can hand-edit package.json with the new version number and then run npm i --package-lock-only to update package-lock.json
  3. Add and commit these changes locally: git commit -m "Bump version to 4.x.x"
  4. gh pr create -- or create the PR in your preferred manner
  5. Get this PR merged into main. Once main is on this version number, you can proceed to next steps.
  6. Note: it will be cleanest if you refrain from merging other PRs into main until this process is done. That way, your last commit message of "Bump version to 4.x.x" will align with the tag.

Create a Github tag for this version

  1. On your local branch, check out the main branch again, and pull the latest code (you may have been on your version4.x.x branch from the previous section's work).
  2. MAKE SURE YOU ARE BACK ON THE MAIN BRANCH WITH THE LATEST CONTENTS!
  3. Create the tag: git tag v4.x.x
  4. Push the tag: git push origin v4.x.x

Prepare the package for release to npm

  1. Run npm ci -- this command respects absolutely whatever is in package-lock.json, which is not true of the npm install command.
  2. npm run clean -- cleans the dist folder
  3. npm run build -- rebuild dist folder
  4. npm login -- get ready to release
  5. npm publish --dry-run -- don't worry, this is safe. READ the output of this command. Make sure the version looks correct according to all the steps above.
npm notice Tarball Details
npm notice name: mirador
npm notice version: 4.2.4
npm notice filename: mirador-4.2.4.tgz
npm notice package size: 3.9 MB
npm notice unpacked size: 17.5 MB
npm notice shasum: 02ba890839555f81f1c46aab486ca1973468b516
...

Note: if you are shipping an alpha or beta version, add the appropriate argument

 npm publish  --dry-run --tag alpha

Publish the release on npm

  1. Actually publish when ready: npm publish

Publish the release on Github

  1. Go into the Github Releases area of the UI
  2. Click on the Tags toggle
Screenshot 2026-09-02 at 3 08 15 PM
  1. Your new tag should be at the top of the list. Click the ... menu, and then click "Create release from this tag"
  2. On the Release edit screen, name your release v4.x.x to match the tag
  3. Use the "Generate Release Notes" button -- if desired, reorganize or add to this. Consider describing the following categories of changes:
    • Breaking changes
    • New Features and improvements
    • Bug Fixes
    • Upgrade notes

Follow-on work

Every time we release, there is follow-on work. As of now (September 2026) these are the dependent repositories that require follow-on upgrades:

  • This repository is a key space for testing. It is a great idea to quickly/immediately test the new version in this environment; it should surface any issues.
  • You will need to check out the repository, npm install the new version, and look around locally.
  • Then PR the new version into mirador-integration main for future reference

2. Core plugins: Share, Download, Image-Tools

  • Requires updating package.json for these codebases, and testing each application with the new version.
  • Then, if the upgrade is significant enough, you must follow the same process above to release a new version of each plugin

3. Mirador website

Community announcement

If this is a significant version, make announcements on Slack, at the Community call, and other channels

Clone this wiki locally