mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
chore(website): generate Mac download link from package version
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user