From b37ca68d61c276e9a02125e2aeeed4a218d6bd67 Mon Sep 17 00:00:00 2001 From: Maksim Eltyshev Date: Thu, 29 Jan 2026 00:24:57 +0100 Subject: [PATCH] chore: Auto-update internal version for nightly build, improve version display in UI --- .../build-and-push-docker-nightly-image.yml | 14 ++++++++++++++ .../src/components/common/AboutModal/AboutPane.jsx | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-push-docker-nightly-image.yml b/.github/workflows/build-and-push-docker-nightly-image.yml index 0c5f9f23..4a923e05 100644 --- a/.github/workflows/build-and-push-docker-nightly-image.yml +++ b/.github/workflows/build-and-push-docker-nightly-image.yml @@ -17,6 +17,20 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '22' + cache: 'npm' + + - name: Update version with build number + run: | + npm version "$(node -p "require('./package.json').version")-nightly.$(git rev-list --count HEAD)" --no-git-tag-version + npx --yes genversion --source . --template server/version-template.ejs server/version.js + npx --yes genversion --source . --template client/version-template.ejs client/src/version.js - name: Set up QEMU uses: docker/setup-qemu-action@v2 diff --git a/client/src/components/common/AboutModal/AboutPane.jsx b/client/src/components/common/AboutModal/AboutPane.jsx index 072151b8..4d04f312 100644 --- a/client/src/components/common/AboutModal/AboutPane.jsx +++ b/client/src/components/common/AboutModal/AboutPane.jsx @@ -40,7 +40,7 @@ const AboutPane = React.memo(() => { -
{version}
+
Community v{version}
{t('common.whatsNew', {