Skip to main content

How to Cut a Release

In the open-source version of Actual, there are 3 NPM packages:

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.

actual-app/sync-server: The entire sync-server and underlying web client in one package. This includes a CLI tool, meant to be used with Node.

All packages and the main Actual release are versioned together. That makes it clear which version of the package should be used with the version of Actual.

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 while 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;

Set up the PRs

Pull requests will need to be opened in two repositories - docs, actual.

actual

  • Run this GitHub Action to generate a release PR (for a regular monthly release, leave the arguments set to their default values).
  • Open the generated PR and ensure the release notes workflow has started to collate the release notes into a comment in the PR. You may need to push an empty commit in order to trigger CI.
  • Remove [WIP] from the PR title to mark it as ready for review, and share in the release channel on Discord.

docs

  • Open an empty PR. Make sure to name the branch release/X.Y.Z where X.Y.Z is the version number.
  • After the release notes workflows in the actual PR has been run, copy the collated notes into a new blog post using a previous release as a template. The release notes will also need adding to the docs/releases.md file.

Trigger the release pipeline

Once the release PRs have been merged, the commit in actual needs to be tagged. When the tag is pushed, it will trigger the Docker stable image, all NPM packages, and the Windows Store app to be built and published.

  • Run the below in the actual repository, or use the GitHub UI.
    git tag vX.Y.Z
    git push vX.Y.Z

All NPM packages should be automatically released and pushed to the NPM registry. Check them here:

A Windows Store update should be automatically generated and submitted for certification. The certification process can take up to 3 business days; once complete the app will be in the Store. You can check the update status here if you have permission. Note that the Store UI will not correctly reflect the submission status for about 30 minutes after submission.

Finally, a draft GitHub release should be automatically created here.

Finalize the release

  • After the Docker image for the release is ready and pushed to Docker Hub, remember to deploy it and do a quick smoke test to verify things still work as expected.
  • Un-draft the GitHub release which will send announcement notifications to all apps.
  • Wrap up by sending an announcement on Discord and Twitter.

🎉