chore(website): generate Mac download link from package version

This commit is contained in:
Mohamed Boudra
2026-02-16 10:55:54 +07:00
parent 04a06197de
commit 6c7ce63272
3 changed files with 8 additions and 2 deletions

View File

@@ -191,7 +191,7 @@ Notes:
- If `release:publish` fails after a successful publish of one workspace, re-run `npm run release:publish`; npm will skip already-published versions and continue where possible.
- If a user asks to "release paseo" (without specifying major/minor), treat it as a patch release and run `npm run release:patch`.
- All workspaces share one version by design. Keep versions synchronized and release together.
- After each release, update the website Mac download CTA URL to the new version tag in `packages/website/src/routes/index.tsx`.
- The website Mac download CTA URL is derived from `packages/website/package.json` version at build time, so no manual update is required after release.
Release completion checklist:
- `npm run release:patch` completes successfully.

View File

@@ -92,6 +92,8 @@ The tag triggers:
- GitHub `Desktop Release` workflow (`.github/workflows/desktop-release.yml`)
- Expo EAS mobile workflow (`packages/app/.eas/workflows/release-mobile.yml`) to build + submit Android/iOS
The website Mac download CTA is generated from `packages/website/package.json` version at build time, so it tracks each release automatically.
Useful monitoring commands after a release push:
```bash

View File

@@ -1,8 +1,12 @@
import * as React from 'react'
import { createFileRoute } from '@tanstack/react-router'
import { CursorFieldProvider } from '~/components/butterfly'
import websitePackage from '../../package.json'
import '~/styles.css'
const desktopVersion = websitePackage.version
const macDownloadHref = `https://github.com/getpaseo/paseo/releases/download/v${desktopVersion}/Paseo_${desktopVersion}_aarch64.dmg`
export const Route = createFileRoute('/')({
head: () => ({
meta: [
@@ -194,7 +198,7 @@ function GetStarted() {
<CodeBlock>npm install -g @getpaseo/cli && paseo</CodeBlock>
<div className="flex flex-col sm:flex-row gap-3">
<a
href="https://github.com/getpaseo/paseo/releases/download/v0.1.6/Paseo_0.1.6_aarch64.dmg"
href={macDownloadHref}
target="_blank"
rel="noopener noreferrer"
className="inline-flex items-center justify-center gap-2 rounded-lg border border-white/20 px-4 py-2 text-sm font-medium text-white hover:bg-white/10 transition-colors"