Files
MikrotikManager/lib/app-version.ts
T
Denozordec 9ccc8459d7
Docker images / prepare-release (push) Successful in 38s
Docker images / backend-image (push) Has been skipped
Docker images / frontend-image (push) Has been skipped
Docker images / updater-image (push) Has been skipped
Docker images / publish-release (push) Has been skipped
Docker images / notify-webhook (push) Has been skipped
feat: update application versioning and enhance release management
- Bumped application version to 1.0.0 across all relevant package files, ensuring consistency in versioning.
- Introduced new environment variables for application version and release URL in Dockerfiles, improving deployment transparency.
- Enhanced the health check endpoint to return the current application version, providing better visibility for monitoring.
- Updated CI/CD workflows to include steps for preparing and publishing releases, streamlining the release process.
- Added a new "Releases" section in the application sidebar for easier access to version information.
2026-05-12 17:19:20 +07:00

17 lines
446 B
TypeScript

import packageJson from "@/package.json"
const packageVersion = packageJson.version
export function getAppVersion(): string {
return process.env.NEXT_PUBLIC_APP_VERSION?.trim() || `${packageVersion}-dev`
}
export function formatAppVersionLabel(version = getAppVersion()): string {
return `v${version}`
}
export function getReleaseUrl(): string | null {
const value = process.env.NEXT_PUBLIC_RELEASE_URL?.trim()
return value || null
}