Skip to content

Commit bdcbe4e

Browse files
authored
Merge pull request #351 from storybookjs/sidnioulz/automate-latest-version
fix: Automate latest version reporting
2 parents ffa9309 + b81abf2 commit bdcbe4e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/frontpage/components/home/hero/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { motion } from 'framer-motion';
99
import { useEffect, useRef, useState } from 'react';
1010
import { ChevronLeftIcon, ChevronRightIcon } from '@storybook/icons';
1111
import { Container } from '@repo/ui';
12+
import { latestVersion } from '@repo/utils';
1213
import { Manager } from '../manager';
1314
import { InitCommand } from './init-command';
1415
import { Chrome } from './chrome';
@@ -122,7 +123,7 @@ export function Hero({
122123
className="md:hidden"
123124
href="https://github.com/storybookjs/storybook/releases"
124125
>
125-
<div className="text-md text-white">v10</div>
126+
<div className="text-md text-white">v{latestVersion.id.split('.')[0]}</div>
126127
<div className="text-sm text-white/60">Latest version</div>
127128
</a>
128129
<div>

0 commit comments

Comments
 (0)