How To Cut A Release
In the open-source version of Actual, all updates go through npm. There are two libraries:
@actual-app/api
: The API for the underlying functionality. This includes the entire backend of Actual, meant to be used with node.
@actual-app/web
: A web build that will serve the app with a web frontend. This includes both the frontend and backend of Actual. It includes the backend as well because it's built to be used as a Web Worker.
Both the API and web libraries are versioned together. This may change in the future, but because the web library also brings along its own backend it's easier to maintain a single version for now. That makes it clear which version the backend is regardless of library. Releasing actual-app/api
Releasing actual-app/api
cd packages/api
vim package.json # bump the version
yarn build
yarn npm publish --access public
Releasing actual-app/web
In the root of actual (not just desktop-client), run this:
yarn build:browser
This will compile both the backend and the frontend into a single directory in packages/desktop-client/build
. This directory is all the files that need to be published. After bumping the version, publish desktop-client:
cd packages/desktop-client
yarn npm publish --access public
Versioning strategy
We used to version according to the date when the release was made. For example: if a release was cut on 02-10-2022, then the release number was 22.10.2
. This posed some challenges if critical bugs were spotted after the release. It meant we had to wait for the next day to cut a new release.
Starting from v23.3.x
we changed how we version Actual by keeping the core philosophy the same. The new versioning strategy is: include the year and month of the release in the version number. But for minor version numbers: start at 0
and increment by +1 for each subsequent bug-fix release.
For example:
v23.3.0
- first release launched on 15th of March, 2023;v23.3.1
- critical bugfix launched on the same date;v23.3.2
- another bugfix launched later in the month of March;v23.4.0
- first release launched on 9th of April, 2023;
Release PRs
When cutting a release, create a PR to each of the actual
and actual-server
repositories. Make sure to name the branch release/X.Y.Z
where X.Y.Z
is the version number. This will trigger the release notes tooling, which will comment on your PR with the generated release notes. You can then copy-paste the release notes into the Release-Notes.md
file in the docs
repository.
This automation will also delete all the outdated release note files from the upcoming-release-notes
directory. Make sure you have merged the latest master
into the release branch and allowed the automation to run before you merge the release PR so all of the files get properly cleaned up.
GitHub Releases
Once you’ve merged and tagged the release, go to the releases page and publish a new release. Use this as the body of the release note:
:link: [View release notes](https://actualbudget.org/blog/release-23.10.0)
## Desktop releases
<a href="https://apps.microsoft.com/detail/9p2hmlhsdbrm?cid=Github+Releases&mode=direct">
<img src="https://get.microsoft.com/images/en-us%20dark.svg" width="200"/>
</a>
Windows Store Releases
The windows Store release process consists of: logging in, uploading the packages, updating the store listing, and submitting for certification.
It's a relatively straight forward process - Microsoft provide a lot of documentation for it.
The steps involved in releasing Actual to the Windows Store are detailed below.
Login to the Microsoft Partner Center:
- Visit the Microsoft Partner Center
- Log in using your Actual Budget account (if you don't have one, ask a core contributor)
- Navigate to "Apps and Games" and select "Actual Budget"
Upload the packages:
- Click "Start update" to create a draft release
- Under "Product Update", choose "Packages"
- Delete all of the packages listed for the previous app version
- Upload the new Appx Packages and save (artifacts available on the Release PR)
Update the store listing:
- Under "Product update", select "Store listings"
- Choose "English" for the english listing
- Under "What's new in this version" briefly describe the "Notable improvements" of the release notes.
Submit to the Store
When all of the above steps are complete, select "Submit to the Store" to progress to the "Certification" stage.
During the "Certification" stage the app is checked by Microsoft to ensure quality. The certification process can take up to 3 business days, once complete the app will be in the Store.
Announcement
After the release is out on actual-server
- remember to deploy it and do a quick smoke test to verify things still work as expected. If they do: continue with sending an announcement on Discord and Twitter.
🎉