chore(release): выставить версию 1.0.0 во всех пакетах
Docker / build (push) Failing after 21s

- version 1.0.0 во всех package.json monorepo
- версия в GET /health и в меню пользователя (vite define)
- Docker: тег vX.Y.Z собирает образ :X.Y.Z и :X.Y, latest остаётся за main
- README: как закрепить версию образа

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
DenozordecandClaude Opus 5.5 committed 2026-11-07 09:41:50 +07:00
1 parent 85ac5b15cb
commit 68c5774df9
13 files changed
+49 -10

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@cfdm/web",
"private": true,
"version": "0.0.0",
"version": "1.0.0",
"type": "module",
"scripts": {
"dev": "vite",
@@ -221,6 +221,12 @@ export function NavUser() {
</DropdownMenuGroup>
</>
) : null}
<DropdownMenuSeparator />
<DropdownMenuGroup>
<DropdownMenuLabel className="text-muted-foreground py-1.5 text-xs font-normal tabular-nums">
VPS Tracker v{__APP_VERSION__}
</DropdownMenuLabel>
</DropdownMenuGroup>
</DropdownMenuContent>
</DropdownMenu>
</SidebarMenuItem>
+3
View File
@@ -10,3 +10,6 @@ interface ImportMetaEnv {
interface ImportMeta {
readonly env: ImportMetaEnv
}
/** Версия релиза (vite define из корневого package.json). */
declare const __APP_VERSION__: string
+5
View File
@@ -3,8 +3,13 @@ import react from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'
import { TanStackRouterVite as TanStackRouterPlugin } from '@tanstack/router-plugin/vite'
import path from 'node:path'
import { readFileSync } from 'node:fs'
// Версия релиза одна на monorepo — из корневого package.json.
const APP_VERSION = (JSON.parse(readFileSync(path.resolve(__dirname, '../../package.json'), 'utf8')) as { version: string }).version
export default defineConfig({
define: { __APP_VERSION__: JSON.stringify(APP_VERSION) },
plugins: [
TanStackRouterPlugin({ target: 'react', autoCodeSplitting: true }),
react(),