From 3138a9658ec282397ff8c08e725b9c17a5a31edb Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Tue, 17 Nov 2026 16:09:14 +0100 Subject: [PATCH 1/4] chore(github): start release changelogs at the branch's own tags --- .github/workflows/release.yml | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4d63247f81..164fe31403 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,8 +2,7 @@ name: release on: push: - # release/v* picks up hand edits to an open release PR - branches: [v4, 'release/v*'] + branches: [v4] pull_request: types: [closed] branches: [v4, v5] @@ -29,10 +28,7 @@ jobs: && ( ( github.event_name == 'push' - && ( - github.ref == format('refs/heads/{0}', github.event.repository.default_branch) - || startsWith(github.ref, 'refs/heads/release/v') - ) + && github.ref == format('refs/heads/{0}', github.event.repository.default_branch) ) || ( github.event_name == 'workflow_dispatch' && !startsWith(github.ref, 'refs/tags/') @@ -47,9 +43,22 @@ jobs: contents: write pull-requests: write steps: + - name: Checkout + uses: actions/checkout@v7 + with: + fetch-depth: 0 + persist-credentials: false + + # uppt starts the changelog at the newest tag by date on any branch, so a tag + # cut elsewhere (4.12.1 and 4.12.2 from a side branch, v5 alphas for v4) + # would drop every commit older than it + - name: Keep only tags reachable from the branch + run: git tag --no-merged HEAD | xargs -r git tag -d + - uses: danielroe/uppt/pr@427b736befa839b403dd145f2a7c16dbf3fd4482 # v0.6.13 with: token: ${{ secrets.GITHUB_TOKEN }} + checkout: false # a dispatch from `v5` opens the release PR against `v5` base-branch: ${{ github.ref_name }} prerelease: ${{ inputs.prerelease }} From 36c706aaf91519235cd84352e83a7530b4243123 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Tue, 17 Nov 2026 16:12:22 +0100 Subject: [PATCH 2/4] chore(release): sync version with v4.12.2 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index eb28d1d505..53881052d6 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@nuxt/ui", "description": "A UI Library for Modern Web Apps, powered by Vue & Tailwind CSS.", - "version": "4.12.0", + "version": "4.12.2", "packageManager": "pnpm@12.18.0", "repository": { "type": "git", From 3936559ac715e5a7e5437896f521e51982a73107 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Tue, 17 Nov 2026 16:19:34 +0100 Subject: [PATCH 3/4] chore(github): release `v5` as betas on `next` --- .github/workflows/release.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 164fe31403..e3a7b388a7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,7 +10,7 @@ on: workflow_dispatch: inputs: prerelease: - description: 'Cut a prerelease instead of a normal release, e.g. `alpha`, `beta` or `rc`' + description: 'Cut a prerelease instead of a normal release, e.g. `beta` or `rc`. Defaults to `beta` on `v5`' required: false default: '' npm-tag: @@ -61,7 +61,8 @@ jobs: checkout: false # a dispatch from `v5` opens the release PR against `v5` base-branch: ${{ github.ref_name }} - prerelease: ${{ inputs.prerelease }} + # `v5` stays on the beta line until 5.0.0 + prerelease: ${{ inputs.prerelease || (github.ref_name == 'v5' && 'beta' || '') }} # same subject as past releases, and a valid conventional PR title title: 'chore(release): v{version}' @@ -117,4 +118,5 @@ jobs: - uses: danielroe/uppt/publish@427b736befa839b403dd145f2a7c16dbf3fd4482 # v0.6.13 with: files: ${{ needs.pack.outputs.files }} - npm-tag: ${{ inputs.npm-tag }} + # v5 prereleases go to `next` rather than `beta` + npm-tag: ${{ inputs.npm-tag || (startsWith(github.ref_name, 'v5.') && contains(github.ref_name, '-') && 'next' || '') }} From 6e278f78b0456023240f5b8dd1577803e027ed0c Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Tue, 17 Nov 2026 16:25:34 +0100 Subject: [PATCH 4/4] chore(github): check the tag before publishing and scope release PR runs per branch --- .github/workflows/release.yml | 45 +++++++++++++++++++++++++++++++---- 1 file changed, 40 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e3a7b388a7..2af471605a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,13 +31,13 @@ jobs: && github.ref == format('refs/heads/{0}', github.event.repository.default_branch) ) || ( github.event_name == 'workflow_dispatch' - && !startsWith(github.ref, 'refs/tags/') + && (github.ref == 'refs/heads/v4' || github.ref == 'refs/heads/v5') ) ) runs-on: ubuntu-latest - # one updater at a time, so an older run can't finish last and overwrite the release branch + # one updater at a time per branch, so an older run can't finish last and overwrite the release branch concurrency: - group: release-pr + group: release-pr-${{ github.ref_name }} cancel-in-progress: false permissions: contents: write @@ -50,7 +50,7 @@ jobs: persist-credentials: false # uppt starts the changelog at the newest tag by date on any branch, so a tag - # cut elsewhere (4.12.1 and 4.12.2 from a side branch, v5 alphas for v4) + # cut elsewhere (4.12.1 and 4.12.2 from a side branch, v5 betas for v4) # would drop every commit older than it - name: Keep only tags reachable from the branch run: git tag --no-merged HEAD | xargs -r git tag -d @@ -100,13 +100,48 @@ jobs: - id: pack uses: danielroe/uppt/pack@427b736befa839b403dd145f2a7c16dbf3fd4482 # v0.6.13 + # lint, typecheck and test the tag before anything reaches npm + check: + if: github.event_name == 'workflow_dispatch' && startsWith(github.ref, 'refs/tags/v') + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - name: Checkout + uses: actions/checkout@v7 + with: + persist-credentials: false + + - name: Install pnpm + uses: pnpm/action-setup@v6 + + - name: Install node + uses: actions/setup-node@v7 + with: + node-version: 24 + cache: pnpm + + - name: Install dependencies + run: pnpm install + + - name: Prepare + run: pnpm run dev:prepare + + - parallel: + - name: Lint + run: pnpm run lint + - name: Typecheck + run: pnpm run typecheck + - name: Test + run: pnpm run test run + # stage the prebuilt tarball to npm via OIDC publish: if: | github.event_name == 'workflow_dispatch' && startsWith(github.ref, 'refs/tags/v') && needs.pack.outputs.files != '[]' - needs: pack + needs: [pack, check] runs-on: ubuntu-latest concurrency: group: publish-${{ github.ref }}