From a415a312f0fa81dccd762be2d60a1cfa2cec91d4 Mon Sep 17 00:00:00 2001 From: Helder Oliveira Date: Mon, 13 Apr 2026 10:43:11 +0100 Subject: [PATCH 1/4] =?UTF-8?q?chore:=20=F0=9F=A4=96=20remove=20create-rel?= =?UTF-8?q?ease=20step?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/create-release.yml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index ffb42b2ac..37513b04a 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -30,14 +30,6 @@ jobs: contents: write pull-requests: write steps: - - name: Validate branch for latest release - if: inputs.release_type == 'latest' && github.ref_name != 'main' - run: | - echo "👹 Oops! Cannot release 'latest' from branch '${{ github.ref_name }}'!" - echo "💡 The 'latest' release type can only be created from the 'main' branch." - echo "💡 Maintenance branches should use 'stable' instead." - exit 1 - - name: Checkout Repo uses: actions/checkout@v6 with: From c86c96cbb0750b9a2d772a06a84fed57112560e9 Mon Sep 17 00:00:00 2001 From: Helder Oliveira Date: Mon, 13 Apr 2026 10:50:13 +0100 Subject: [PATCH 2/4] =?UTF-8?q?docs:=20=F0=9F=93=9D=20update=20stable=20re?= =?UTF-8?q?leases=20to=20include=20less=20strict=20usage=20of=20=20tag?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/package-release.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/package-release.md b/docs/package-release.md index e58a97a23..3bef53c2a 100644 --- a/docs/package-release.md +++ b/docs/package-release.md @@ -218,7 +218,10 @@ git push origin chore/v1.0.0 ### Promoting to stable release -Stable releases are created from `chore/v*` branches. Once a stable release is published, the pre-release mode is switched off and `main` must be updated to reflect the version bump and exit from pre-release mode. +Stable releases (`stable` or `latest`) can be created from `chore/v*` branches. Once released, the pre-release mode is switched off and `main` must be updated to reflect the version bump and exit from pre-release mode. + +> [!WARN] +> Use `latest` only when you want the release to become the default version on npm. Follow these steps: @@ -226,7 +229,7 @@ Follow these steps: 2. Run the [Create Release](https://github.com/ClickHouse/click-ui/actions/workflows/create-release.yml) workflow from the `chore/v*` branch: - Select the maintenance branch (e.g., `chore/v1.0.0`) - - Choose `stable` as the release type + - Choose `stable` or `latest` as the release type - Confirm the release type and branch name 3. Review and merge the release PR into the maintenance branch From 5708e7b881ffaeb194f0469d86346b74e165f10f Mon Sep 17 00:00:00 2001 From: Helder Oliveira Date: Mon, 13 Apr 2026 11:10:43 +0100 Subject: [PATCH 3/4] =?UTF-8?q?fix:=20=F0=9F=90=9B=20correct=20github=20wa?= =?UTF-8?q?rning?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/package-release.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/package-release.md b/docs/package-release.md index 3bef53c2a..f841d1468 100644 --- a/docs/package-release.md +++ b/docs/package-release.md @@ -220,7 +220,7 @@ git push origin chore/v1.0.0 Stable releases (`stable` or `latest`) can be created from `chore/v*` branches. Once released, the pre-release mode is switched off and `main` must be updated to reflect the version bump and exit from pre-release mode. -> [!WARN] +> [!WARNING] > Use `latest` only when you want the release to become the default version on npm. Follow these steps: From c682d88d3e51a02f2046cf9a2fa324ddf4f86cef Mon Sep 17 00:00:00 2001 From: Helder Oliveira Date: Mon, 13 Apr 2026 11:43:06 +0100 Subject: [PATCH 4/4] =?UTF-8?q?docs:=20=F0=9F=93=9D=20warn=20about=20possi?= =?UTF-8?q?ble=20downgrades?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/package-release.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/package-release.md b/docs/package-release.md index f841d1468..7f337183f 100644 --- a/docs/package-release.md +++ b/docs/package-release.md @@ -221,7 +221,8 @@ git push origin chore/v1.0.0 Stable releases (`stable` or `latest`) can be created from `chore/v*` branches. Once released, the pre-release mode is switched off and `main` must be updated to reflect the version bump and exit from pre-release mode. > [!WARNING] -> Use `latest` only when you want the release to become the default version on npm. +> Use `latest` only when you want this version to become the **default** installed by `npm install @clickhouse/click-ui`. +> Publishing `latest` from an older maintenance branch (e.g., `chore/v1.x.x`) **will downgrade** the default for all users who haven't pinned a version, even if a newer `v2.x.x` was previously `latest`. Follow these steps: