Repository navigation
How to release a version of Mirador
Marlo Longley edited this page Sep 30, 2026
·
15 revisions
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
Note: Mirador uses Semantic Versioning to determine version numbers.
- Locally, prepare a PR to update the version number in
./package.jsonand 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 branchv4.x.x. - You can hand-edit
package.jsonwith the new version number and then runnpm i --package-lock-onlyto updatepackage-lock.json - Add and commit these changes locally:
git commit -m "Bump version to 4.x.x" -
gh pr create-- or create the PR in your preferred manner - Get this PR merged into
main. Once main is on this version number, you can proceed to next steps. - 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.
- On your local branch, check out the
mainbranch again, and pull the latest code (you may have been on yourversion4.x.xbranch from the previous section's work). - MAKE SURE YOU ARE BACK ON THE MAIN BRANCH WITH THE LATEST CONTENTS!
- Create the tag:
git tag v4.x.x - Push the tag:
git push origin v4.x.x
- Run
npm ci-- this command respects absolutely whatever is inpackage-lock.json, which is not true of thenpm installcommand. -
npm run clean-- cleans the dist folder -
npm run build-- rebuild dist folder -
npm login-- get ready to release -
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- Actually publish when ready:
npm publish
- Go into the Github Releases area of the UI
- Click on the Tags toggle
- Your new tag should be at the top of the list. Click the
...menu, and then click "Create release from this tag" - On the Release edit screen, name your release
v4.x.xto match the tag - 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
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 installthe new version, and look around locally. - Then PR the new version into
mirador-integrationmainfor future reference
- Requires updating
package.jsonfor 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
- For minor version updates, this should be automatically incremented on
npm install. See https://github.com/ProjectMirador/mirador-website/blob/772afb82633a1daacb90082c2b7c7f9c9eda54ed/package.json#L13 - You will need to check out the repository,
npm installthe new version, and then PR that intomirador-websitemain. Once merged into main, it will automatically deploy with the new version.
If this is a significant version, make announcements on Slack, at the Community call, and other channels