Skip to content

Commit 4832af8

Browse files
committed
docs: update releases page with new versioning details and add LatestVersionNumber component
1 parent 3826017 commit 4832af8

2 files changed

Lines changed: 34 additions & 3 deletions

File tree

packages/documentation/releases/releases.mdx

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,21 @@ hide_table_of_contents: true
44
slug: /
55
---
66

7+
import LatestVersionNumber from '../src/components/LatestVersionNumber.jsx'
8+
79
<!-- Warning: This file is intentionally not in the docs folder as it makes no sense to be versioned. If it does get versioned, then the import below breaks -->
810

9-
import GitHubReleases from '../src/components/GitHubReleases'
11+
Sofie project is working in a quaterly release cycle. The releases are done at the end of every March, June, September,
12+
and begining of December. The main Sofie components do not follow semantic versioning and instead use a `year.month`
13+
system. For example, the June release of year 2026 will be versioned as `26.06`.
14+
15+
The latest version is: <LatestVersionNumber />
16+
17+
When a version is released, the `HEAD` of the Git repositories is branched off into a new branch called `releases/YY.mm`
18+
and a Git tag is created for it.
1019

11-
Current, future, and past releases of _Sofie_ are all tracked on [**our GitHub repository**](https://github.com/Sofie-Automation/Sofie-TV-automation/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3ARelease).
20+
## Historic versioning
1221

13-
<GitHubReleases org="Sofie-Automation" repo="Sofie-TV-Automation" releaseLabel="Release" state="all" />
22+
The new versioning system was implemented in March 2026 by the Sofie Technical Steering Comitee. All earlier versions follow a different versioning system,
23+
where `1.xx.xx` is used, with the major field fixed at `1`, the minor field indicating a development cycle of
24+
variable length, and the patch field used for bugfix releases, starting at `0`.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import React, { useState, useEffect } from 'react'
2+
3+
import versions from '../../versions.json';
4+
5+
const FALLBACK_VERSION = "2?.03"
6+
7+
export default function LatestVersionNumber() {
8+
try {
9+
// The first item in versions.json is always the latest archived version
10+
const latestVersion = versions[0];
11+
12+
if (!latestVersion) {
13+
return <span>{FALLBACK_VERSION}</span>; // Fallback if versions.json is empty
14+
}
15+
16+
return <span>{latestVersion}</span>;
17+
} catch (error) {
18+
return <span>{FALLBACK_VERSION}</span>;
19+
}
20+
}

0 commit comments

Comments
 (0)