Skip to content

feat: display opencli version dynamically from CI build#1

Merged
ByteYue merged 1 commit intomasterfrom
feat/dynamic-version-display
Mar 22, 2026
Merged

feat: display opencli version dynamically from CI build#1
ByteYue merged 1 commit intomasterfrom
feat/dynamic-version-display

Conversation

@ByteYue
Copy link
Collaborator

@ByteYue ByteYue commented Mar 22, 2026

Description

Currently the website hardcodes v1.0 in the hero badge, while opencli is already at v1.2.6.

This PR:

  1. Reorders the deploy workflow to checkout opencli repo before building the website
  2. Extracts the version from opencli's package.json and injects it as VITE_OPENCLI_VERSION env var during Vite build
  3. Updates App.tsx to read the env var dynamically (with v1.0 fallback for local dev)
  4. Adds version-released to the repository_dispatch event types

Companion PR: ByteYue/opencli#2 — ci: trigger website rebuild on release

Changes

  • deploy.yml: Reorder steps, extract version, inject VITE_OPENCLI_VERSION
  • App.tsx: Replace hardcoded v1.0 with import.meta.env.VITE_OPENCLI_VERSION || '1.0'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant