From c657bdfb63b813cb388735357fc79ad0f8e116b5 Mon Sep 17 00:00:00 2001 From: charlesgauthereau Date: Fri, 6 Mar 2026 09:10:47 +0100 Subject: [PATCH 01/27] fix --- .github/workflows/auto-release.yml | 68 +++++++++++++++++++++++++++--- 1 file changed, 62 insertions(+), 6 deletions(-) diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index ce837976..3a8d583f 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -1,8 +1,59 @@ +#name: Auto Release bot +# +#on: +# pull_request: +# types: [ closed ] +# branches: +# - main +# +#jobs: +# release: +# if: github.event.pull_request.merged == true +# runs-on: ubuntu-latest +# permissions: +# contents: write +# +# steps: +# - uses: actions/create-github-app-token@v1 +# id: app-token +# with: +# app-id: ${{ vars.APP_ID }} +# private-key: ${{ secrets.APP_PRIVATE_KEY }} +# +# - uses: actions/checkout@v4 +# with: +# fetch-depth: 0 +# token: ${{ steps.app-token.outputs.token }} +# ref: ${{ github.base_ref }} +# +# - uses: pnpm/action-setup@v4 +# +# - uses: actions/setup-node@v4 +# with: +# node-version: "lts/*" +# cache: "pnpm" +# +# - run: pnpm install --frozen-lockfile +# +# - run: git config --global user.name 'github-actions[bot]' +# - run: git config --global user.email 'github-actions[bot]@users.noreply.github.com' +# +# - name: Push tags +# run: git push origin --tags +# +# - name: Run release-it +# run: | +# git pull origin main +# pnpm exec release-it --ci +# env: +# GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} + + name: Auto Release bot on: pull_request: - types: [ closed ] + types: [closed] branches: - main @@ -38,12 +89,17 @@ jobs: - run: git config --global user.name 'github-actions[bot]' - run: git config --global user.email 'github-actions[bot]@users.noreply.github.com' - - name: Push tags - run: git push origin --tags + - name: Bump version and tag + run: pnpm exec release-it --ci --no-github + env: + GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} - - name: Run release-it + - name: Push commits and tags run: | - git pull origin main - pnpm exec release-it --ci + git push origin main + git push origin --tags + + - name: Create GitHub release + run: pnpm exec release-it --ci --only-github env: GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} From ad363ce38c78f03218d9675d7b9382cf2dcc679a Mon Sep 17 00:00:00 2001 From: charlesgauthereau Date: Fri, 6 Mar 2026 09:16:58 +0100 Subject: [PATCH 02/27] fix --- .github/workflows/auto-release.yml | 70 +++++------------------------- .release-it.json | 2 +- 2 files changed, 11 insertions(+), 61 deletions(-) diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index 3a8d583f..a7d3fc59 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -1,59 +1,8 @@ -#name: Auto Release bot -# -#on: -# pull_request: -# types: [ closed ] -# branches: -# - main -# -#jobs: -# release: -# if: github.event.pull_request.merged == true -# runs-on: ubuntu-latest -# permissions: -# contents: write -# -# steps: -# - uses: actions/create-github-app-token@v1 -# id: app-token -# with: -# app-id: ${{ vars.APP_ID }} -# private-key: ${{ secrets.APP_PRIVATE_KEY }} -# -# - uses: actions/checkout@v4 -# with: -# fetch-depth: 0 -# token: ${{ steps.app-token.outputs.token }} -# ref: ${{ github.base_ref }} -# -# - uses: pnpm/action-setup@v4 -# -# - uses: actions/setup-node@v4 -# with: -# node-version: "lts/*" -# cache: "pnpm" -# -# - run: pnpm install --frozen-lockfile -# -# - run: git config --global user.name 'github-actions[bot]' -# - run: git config --global user.email 'github-actions[bot]@users.noreply.github.com' -# -# - name: Push tags -# run: git push origin --tags -# -# - name: Run release-it -# run: | -# git pull origin main -# pnpm exec release-it --ci -# env: -# GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} - - name: Auto Release bot on: pull_request: - types: [closed] + types: [ closed ] branches: - main @@ -89,17 +38,18 @@ jobs: - run: git config --global user.name 'github-actions[bot]' - run: git config --global user.email 'github-actions[bot]@users.noreply.github.com' - - name: Bump version and tag - run: pnpm exec release-it --ci --no-github + - name: Run release-it + run: | + git pull origin main + pnpm exec release-it --ci env: GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} - - name: Push commits and tags + - name: Convert release to draft run: | - git push origin main - git push origin --tags - - - name: Create GitHub release - run: pnpm exec release-it --ci --only-github + RELEASE_ID=$(gh release view v$(jq -r .version package.json) --repo $GITHUB_REPOSITORY --json id -q .id) + gh release edit $RELEASE_ID --draft --repo $GITHUB_REPOSITORY env: GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} + + diff --git a/.release-it.json b/.release-it.json index 5a77ebe2..cde53dc0 100644 --- a/.release-it.json +++ b/.release-it.json @@ -1,7 +1,7 @@ { "github": { "release": true, - "draft": true, + "draft": false, "tokenRef": "GITHUB_TOKEN" }, "git": { From a5e83f3133bbdcb691ca21cce875a5526c992ee8 Mon Sep 17 00:00:00 2001 From: charlesgauthereau Date: Fri, 6 Mar 2026 09:20:51 +0100 Subject: [PATCH 03/27] fix --- .github/workflows/auto-release.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index a7d3fc59..59845d3a 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -47,9 +47,9 @@ jobs: - name: Convert release to draft run: | - RELEASE_ID=$(gh release view v$(jq -r .version package.json) --repo $GITHUB_REPOSITORY --json id -q .id) - gh release edit $RELEASE_ID --draft --repo $GITHUB_REPOSITORY + TAG=${{ steps.release.outputs.tag }} + echo "Updating release $TAG to draft" + RELEASE_ID=$(gh release view "$TAG" --json id -q .id) + gh release edit "$RELEASE_ID" --draft env: GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} - - From a43127071864e9f50edaa0064e72fe5fe3497fc9 Mon Sep 17 00:00:00 2001 From: charlesgauthereau Date: Fri, 6 Mar 2026 09:24:09 +0100 Subject: [PATCH 04/27] fix --- .github/workflows/auto-release.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index 59845d3a..29cf104d 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -39,15 +39,16 @@ jobs: - run: git config --global user.email 'github-actions[bot]@users.noreply.github.com' - name: Run release-it + id: release_step run: | git pull origin main - pnpm exec release-it --ci + pnpm exec release-it --ci --ci-output env: GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} - name: Convert release to draft run: | - TAG=${{ steps.release.outputs.tag }} + TAG=${{ steps.release_step.outputs.tag }} echo "Updating release $TAG to draft" RELEASE_ID=$(gh release view "$TAG" --json id -q .id) gh release edit "$RELEASE_ID" --draft From 539b516e45ef0c70e6a09e48965c638be45cc595 Mon Sep 17 00:00:00 2001 From: charlesgauthereau Date: Fri, 6 Mar 2026 09:29:35 +0100 Subject: [PATCH 05/27] fix --- .github/workflows/auto-release.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index 29cf104d..11111e19 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -46,11 +46,16 @@ jobs: env: GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} + - name: Get new version + id: get_version + run: | + TAG="v$(node -p "require('./package.json').version")" + echo "tag=$TAG" >> $GITHUB_OUTPUT + - name: Convert release to draft run: | - TAG=${{ steps.release_step.outputs.tag }} echo "Updating release $TAG to draft" RELEASE_ID=$(gh release view "$TAG" --json id -q .id) gh release edit "$RELEASE_ID" --draft env: - GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} + GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} \ No newline at end of file From f6da5961c39d0459d7ebd40a1d49d9e8a164d003 Mon Sep 17 00:00:00 2001 From: charlesgauthereau Date: Fri, 6 Mar 2026 09:33:23 +0100 Subject: [PATCH 06/27] fix --- .github/workflows/auto-release.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index 11111e19..a572f02e 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -38,20 +38,23 @@ jobs: - run: git config --global user.name 'github-actions[bot]' - run: git config --global user.email 'github-actions[bot]@users.noreply.github.com' +# - name: Run release-it +# id: release_step +# run: | +# git pull origin main +# pnpm exec release-it --ci --ci-output +# env: +# GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} + - name: Run release-it id: release_step run: | git pull origin main - pnpm exec release-it --ci --ci-output + TAG=$(pnpm exec release-it --ci --ci-output | grep -oE '🔗 https://github.com/.+/releases/tag/([^\s]+)' | awk -F/ '{print $NF}') + echo "tag=$TAG" >> $GITHUB_OUTPUT env: GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} - - name: Get new version - id: get_version - run: | - TAG="v$(node -p "require('./package.json').version")" - echo "tag=$TAG" >> $GITHUB_OUTPUT - - name: Convert release to draft run: | echo "Updating release $TAG to draft" From ff48517b430472ec15e7b9483c0b36d91e4be3aa Mon Sep 17 00:00:00 2001 From: charlesgauthereau Date: Fri, 6 Mar 2026 09:36:31 +0100 Subject: [PATCH 07/27] fix --- .github/workflows/auto-release.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index 241681cc..b8a41e58 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -55,11 +55,6 @@ jobs: env: GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} - - name: Get new version - id: get_version - run: | - TAG="v$(node -p "require('./package.json').version")" - echo "tag=$TAG" >> $GITHUB_OUTPUT - name: Convert release to draft run: | From 7d4d6cd9df04463cead1fd6e2cdc84d6b10f7d3c Mon Sep 17 00:00:00 2001 From: charlesgauthereau Date: Fri, 6 Mar 2026 09:47:02 +0100 Subject: [PATCH 08/27] fix --- .github/workflows/auto-release.yml | 24 +++++++----------------- .release-it.json | 2 +- 2 files changed, 8 insertions(+), 18 deletions(-) diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index b8a41e58..0353c525 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -42,24 +42,14 @@ jobs: # id: release_step # run: | # git pull origin main -# pnpm exec release-it --ci --ci-output +# pnpm exec release-it --ci # env: # GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} + - name: Create tag only + run: pnpm exec release-it --ci --no-github - - name: Run release-it - id: release_step - run: | - git pull origin main - TAG=$(pnpm exec release-it --ci --ci-output | grep -oE '🔗 https://github.com/.+/releases/tag/([^\s]+)' | awk -F/ '{print $NF}') - echo "tag=$TAG" >> $GITHUB_OUTPUT - env: - GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} + - name: Push tag + run: git push origin v$(pnpm exec release-it --ci --dry-run | grep 'next version' | awk '{print $NF}') - - - name: Convert release to draft - run: | - echo "Updating release $TAG to draft" - RELEASE_ID=$(gh release view "$TAG" --json id -q .id) - gh release edit "$RELEASE_ID" --draft - env: - GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} \ No newline at end of file + - name: Create GitHub release + run: pnpm exec release-it --ci --no-npm diff --git a/.release-it.json b/.release-it.json index cde53dc0..5a77ebe2 100644 --- a/.release-it.json +++ b/.release-it.json @@ -1,7 +1,7 @@ { "github": { "release": true, - "draft": false, + "draft": true, "tokenRef": "GITHUB_TOKEN" }, "git": { From 1e6bb542f9693da4761b236be8b106c5b858f4d2 Mon Sep 17 00:00:00 2001 From: charlesgauthereau Date: Fri, 6 Mar 2026 09:53:23 +0100 Subject: [PATCH 09/27] fix --- .github/workflows/auto-release.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index 0353c525..7aa158af 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -45,11 +45,19 @@ jobs: # pnpm exec release-it --ci # env: # GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} - - name: Create tag only - run: pnpm exec release-it --ci --no-github + - name: Create tag and push it + run: | + git pull origin main + pnpm exec release-it --ci --no-github + env: + GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} - name: Push tag run: git push origin v$(pnpm exec release-it --ci --dry-run | grep 'next version' | awk '{print $NF}') + env: + GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} - name: Create GitHub release run: pnpm exec release-it --ci --no-npm + env: + GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} \ No newline at end of file From 53c1bc9e59bc294291a17d09347c9bc427af9dcc Mon Sep 17 00:00:00 2001 From: charlesgauthereau Date: Fri, 6 Mar 2026 09:56:13 +0100 Subject: [PATCH 10/27] fix --- .github/workflows/auto-release.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index 7aa158af..f711bd36 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -52,11 +52,6 @@ jobs: env: GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} - - name: Push tag - run: git push origin v$(pnpm exec release-it --ci --dry-run | grep 'next version' | awk '{print $NF}') - env: - GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} - - name: Create GitHub release run: pnpm exec release-it --ci --no-npm env: From de4f31f2556b065fd13942d6aba3f5d64570dc34 Mon Sep 17 00:00:00 2001 From: charlesgauthereau Date: Fri, 6 Mar 2026 09:58:11 +0100 Subject: [PATCH 11/27] fix --- .github/workflows/auto-release.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index f711bd36..b9c7df85 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -45,14 +45,15 @@ jobs: # pnpm exec release-it --ci # env: # GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} - - name: Create tag and push it + - name: Create version and push tag + id: create_tag run: | - git pull origin main - pnpm exec release-it --ci --no-github + pnpm exec release-it --ci --no-github --no-npm + git push origin --follow-tags env: GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} - name: Create GitHub release - run: pnpm exec release-it --ci --no-npm + run: pnpm exec release-it --ci --no-npm --no-git env: GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} \ No newline at end of file From 51747773ba4e41b185b89cb3d102776e4b640294 Mon Sep 17 00:00:00 2001 From: charlesgauthereau Date: Fri, 6 Mar 2026 10:02:32 +0100 Subject: [PATCH 12/27] fix --- .github/workflows/auto-release.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index b9c7df85..a2c41c1c 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -53,7 +53,10 @@ jobs: env: GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} + - name: Fetch tags + run: git fetch --tags + - name: Create GitHub release - run: pnpm exec release-it --ci --no-npm --no-git + run: pnpm exec release-it --ci --no-npm --no-increment --no-git env: GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} \ No newline at end of file From 79387b83f6d595e96d5ad8b316e2cde2882d3b3d Mon Sep 17 00:00:00 2001 From: charlesgauthereau Date: Fri, 6 Mar 2026 10:24:58 +0100 Subject: [PATCH 13/27] fix --- .github/workflows/auto-release.yml | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index a2c41c1c..cf37c49a 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -38,25 +38,10 @@ jobs: - run: git config --global user.name 'github-actions[bot]' - run: git config --global user.email 'github-actions[bot]@users.noreply.github.com' -# - name: Run release-it -# id: release_step -# run: | -# git pull origin main -# pnpm exec release-it --ci -# env: -# GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} - - name: Create version and push tag - id: create_tag + - name: Run release-it + id: release_step run: | - pnpm exec release-it --ci --no-github --no-npm - git push origin --follow-tags + git pull origin main + pnpm exec release-it --ci --dry-run env: GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} - - - name: Fetch tags - run: git fetch --tags - - - name: Create GitHub release - run: pnpm exec release-it --ci --no-npm --no-increment --no-git - env: - GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} \ No newline at end of file From b063e5c2762b41be363ef27098809bd3a7f0a1a7 Mon Sep 17 00:00:00 2001 From: charlesgauthereau Date: Fri, 6 Mar 2026 10:29:27 +0100 Subject: [PATCH 14/27] fix --- .github/workflows/auto-release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index cf37c49a..013a9ab3 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -35,6 +35,8 @@ jobs: - run: pnpm install --frozen-lockfile + + - run: git config --global user.name 'github-actions[bot]' - run: git config --global user.email 'github-actions[bot]@users.noreply.github.com' From c840196a14fed507a66f0a96020d8d74f16dc06d Mon Sep 17 00:00:00 2001 From: charlesgauthereau Date: Fri, 6 Mar 2026 10:33:38 +0100 Subject: [PATCH 15/27] fix --- .github/workflows/auto-release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index 013a9ab3..f018c75c 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -37,6 +37,8 @@ jobs: + + - run: git config --global user.name 'github-actions[bot]' - run: git config --global user.email 'github-actions[bot]@users.noreply.github.com' From f1c7dcda45f32137971de5d9aba7cac991f4f7d0 Mon Sep 17 00:00:00 2001 From: charlesgauthereau Date: Fri, 6 Mar 2026 10:39:28 +0100 Subject: [PATCH 16/27] fix --- .github/workflows/auto-release.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index f018c75c..5e3fb836 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -24,7 +24,8 @@ jobs: with: fetch-depth: 0 token: ${{ steps.app-token.outputs.token }} - ref: ${{ github.base_ref }} + #ref: ${{ github.base_ref }} + ref: main - uses: pnpm/action-setup@v4 @@ -35,17 +36,13 @@ jobs: - run: pnpm install --frozen-lockfile - - - - - run: git config --global user.name 'github-actions[bot]' - run: git config --global user.email 'github-actions[bot]@users.noreply.github.com' - name: Run release-it id: release_step - run: | - git pull origin main - pnpm exec release-it --ci --dry-run +# run: | +# git pull origin main + run: pnpm exec release-it --ci env: GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} From 746a9f5eb63894d2ff56a9839834ab5c2b604ccd Mon Sep 17 00:00:00 2001 From: charlesgauthereau Date: Fri, 6 Mar 2026 10:49:04 +0100 Subject: [PATCH 17/27] fix --- .github/workflows/auto-release.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index 5e3fb836..d0cdb9e4 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -39,6 +39,9 @@ jobs: - run: git config --global user.name 'github-actions[bot]' - run: git config --global user.email 'github-actions[bot]@users.noreply.github.com' + - run: git fetch origin main:main + - run: git checkout main + - name: Run release-it id: release_step # run: | From ba4476a3a746bd2f2d6617d3ecc046dc9a98b20a Mon Sep 17 00:00:00 2001 From: charlesgauthereau Date: Fri, 6 Mar 2026 11:21:11 +0100 Subject: [PATCH 18/27] fix --- .github/workflows/auto-release.yml | 24 +++++++++++++++++------- .release-it.json | 3 ++- 2 files changed, 19 insertions(+), 8 deletions(-) diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index d0cdb9e4..e03fa2b4 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -24,8 +24,7 @@ jobs: with: fetch-depth: 0 token: ${{ steps.app-token.outputs.token }} - #ref: ${{ github.base_ref }} - ref: main + ref: ${{ github.base_ref }} - uses: pnpm/action-setup@v4 @@ -39,13 +38,24 @@ jobs: - run: git config --global user.name 'github-actions[bot]' - run: git config --global user.email 'github-actions[bot]@users.noreply.github.com' - - run: git fetch origin main:main - - run: git checkout main + - name: Fetch tags + run: git fetch --tags - - name: Run release-it - id: release_step +# - name: Run release-it +# id: release_step # run: | # git pull origin main - run: pnpm exec release-it --ci +# pnpm exec release-it --ci +# env: +# GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} + - name: Run release-it + id: release_step + run: | + git pull origin main + OUTPUT=$(pnpm exec release-it --ci) + echo "$OUTPUT" + # Extract the untagged draft release name + DRAFT_TAG=$(echo "$OUTPUT" | grep -o 'releases/tag/[^ ]*' | sed 's|releases/tag/||') + echo "draft_tag=$DRAFT_TAG" >> $GITHUB_OUTPUT env: GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} diff --git a/.release-it.json b/.release-it.json index 5a77ebe2..6bd22c9b 100644 --- a/.release-it.json +++ b/.release-it.json @@ -2,7 +2,8 @@ "github": { "release": true, "draft": true, - "tokenRef": "GITHUB_TOKEN" + "tokenRef": "GITHUB_TOKEN", + "update": true }, "git": { "commit": true, From 3ccccfc5e5f3306697a3fe9c7e22e08a8db5c45e Mon Sep 17 00:00:00 2001 From: charlesgauthereau Date: Fri, 6 Mar 2026 11:24:12 +0100 Subject: [PATCH 19/27] fix --- .github/workflows/auto-release.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index e03fa2b4..d01ab987 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -41,13 +41,13 @@ jobs: - name: Fetch tags run: git fetch --tags -# - name: Run release-it -# id: release_step -# run: | -# git pull origin main -# pnpm exec release-it --ci -# env: -# GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} + # - name: Run release-it + # id: release_step + # run: | + # git pull origin main + # pnpm exec release-it --ci + # env: + # GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} - name: Run release-it id: release_step run: | @@ -59,3 +59,7 @@ jobs: echo "draft_tag=$DRAFT_TAG" >> $GITHUB_OUTPUT env: GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} + + - name: Log draft release tag + run: | + echo "The temporary draft release tag is: ${{ steps.release_step.outputs.draft_tag }}" \ No newline at end of file From 67302c6a177e61ac5e37db79f4693cd228a42fc9 Mon Sep 17 00:00:00 2001 From: charlesgauthereau Date: Fri, 6 Mar 2026 11:43:48 +0100 Subject: [PATCH 20/27] fix --- .github/workflows/auto-release.yml | 14 +++++++++-- .github/workflows/release.yml | 38 ++++++++++++++++++++++-------- 2 files changed, 40 insertions(+), 12 deletions(-) diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index d01ab987..a25f9d42 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -12,7 +12,8 @@ jobs: runs-on: ubuntu-latest permissions: contents: write - + outputs: + draft_tag: ${{ steps.release_step.outputs.draft_tag }} steps: - uses: actions/create-github-app-token@v1 id: app-token @@ -62,4 +63,13 @@ jobs: - name: Log draft release tag run: | - echo "The temporary draft release tag is: ${{ steps.release_step.outputs.draft_tag }}" \ No newline at end of file + echo "The temporary draft release tag is: ${{ steps.release_step.outputs.draft_tag }}" + + - name: Write draft tag to file + run: echo "${{ steps.release_step.outputs.draft_tag }}" > draft_tag.txt + + - name: Save draft tag artifact + uses: actions/upload-artifact@v3 + with: + name: draft_tag + path: draft_tag.txt \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 140a05ac..669bed6c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,6 +11,24 @@ permissions: packages: write jobs: + + + log-draft-tag: + runs-on: ubuntu-latest + steps: + - name: Download draft tag artifact + uses: actions/download-artifact@v3 + with: + name: draft_tag + path: . + + - name: Read draft tag + id: draft + run: | + DRAFT_TAG=$(cat draft_tag.txt) + echo $DRAFT_TAG + echo "draft_tag=$DRAFT_TAG" >> $GITHUB_OUTPUT + docker_publish: uses: ./.github/workflows/docker.yml with: @@ -22,16 +40,16 @@ jobs: needs: docker_publish runs-on: ubuntu-latest steps: - - name: Checkout code - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Publish GitHub Release - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - gh release edit v${{ github.ref_name }} --draft=false + - name: Checkout code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Publish GitHub Release + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh release edit v${{ github.ref_name }} --draft=false discord_notification: needs: docker_publish From 55cb4a7144670980140128c6faa8c640cffdecce Mon Sep 17 00:00:00 2001 From: charlesgauthereau Date: Fri, 6 Mar 2026 11:46:33 +0100 Subject: [PATCH 21/27] fix --- .github/workflows/auto-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index a25f9d42..d3a15ca5 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -69,7 +69,7 @@ jobs: run: echo "${{ steps.release_step.outputs.draft_tag }}" > draft_tag.txt - name: Save draft tag artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: draft_tag path: draft_tag.txt \ No newline at end of file From 401ce5c290f135d33dc99ad6853302517ca5ab69 Mon Sep 17 00:00:00 2001 From: charlesgauthereau Date: Fri, 6 Mar 2026 11:49:35 +0100 Subject: [PATCH 22/27] fix --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 669bed6c..dd0a303b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,7 +17,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Download draft tag artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: draft_tag path: . From 26273b7240a9517e7ca2ad42c3039b37970232e3 Mon Sep 17 00:00:00 2001 From: charlesgauthereau Date: Fri, 6 Mar 2026 13:04:58 +0100 Subject: [PATCH 23/27] fix --- .github/workflows/auto-release.yml | 28 +--------------------------- .github/workflows/release.yml | 6 +++++- 2 files changed, 6 insertions(+), 28 deletions(-) diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index d3a15ca5..747142e7 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -12,8 +12,6 @@ jobs: runs-on: ubuntu-latest permissions: contents: write - outputs: - draft_tag: ${{ steps.release_step.outputs.draft_tag }} steps: - uses: actions/create-github-app-token@v1 id: app-token @@ -42,34 +40,10 @@ jobs: - name: Fetch tags run: git fetch --tags - # - name: Run release-it - # id: release_step - # run: | - # git pull origin main - # pnpm exec release-it --ci - # env: - # GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} - name: Run release-it id: release_step run: | git pull origin main - OUTPUT=$(pnpm exec release-it --ci) - echo "$OUTPUT" - # Extract the untagged draft release name - DRAFT_TAG=$(echo "$OUTPUT" | grep -o 'releases/tag/[^ ]*' | sed 's|releases/tag/||') - echo "draft_tag=$DRAFT_TAG" >> $GITHUB_OUTPUT + pnpm exec release-it --ci env: GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} - - - name: Log draft release tag - run: | - echo "The temporary draft release tag is: ${{ steps.release_step.outputs.draft_tag }}" - - - name: Write draft tag to file - run: echo "${{ steps.release_step.outputs.draft_tag }}" > draft_tag.txt - - - name: Save draft tag artifact - uses: actions/upload-artifact@v4 - with: - name: draft_tag - path: draft_tag.txt \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dd0a303b..e04f8203 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,6 +1,8 @@ name: Publish Docker image for release on: + release: + types: [ created ] push: tags: - "*.*.*" @@ -46,10 +48,12 @@ jobs: fetch-depth: 0 - name: Publish GitHub Release + if: ${{ github.event.release.draft == true }} env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# gh release edit v${{ github.ref_name }} --draft=false run: | - gh release edit v${{ github.ref_name }} --draft=false + gh release edit ${{ github.event.release.tag_name }} --draft=false discord_notification: needs: docker_publish From ab226806252a53cf7ccbe45c794ad05d8dedd7aa Mon Sep 17 00:00:00 2001 From: charlesgauthereau Date: Fri, 6 Mar 2026 13:07:03 +0100 Subject: [PATCH 24/27] fix --- .github/workflows/release.yml | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e04f8203..c4f8535f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,22 +14,12 @@ permissions: jobs: - log-draft-tag: runs-on: ubuntu-latest steps: - - name: Download draft tag artifact - uses: actions/download-artifact@v4 - with: - name: draft_tag - path: . - - name: Read draft tag - id: draft run: | - DRAFT_TAG=$(cat draft_tag.txt) - echo $DRAFT_TAG - echo "draft_tag=$DRAFT_TAG" >> $GITHUB_OUTPUT + echo ${{ github.event.release.tag_name }} docker_publish: uses: ./.github/workflows/docker.yml @@ -51,7 +41,7 @@ jobs: if: ${{ github.event.release.draft == true }} env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} -# gh release edit v${{ github.ref_name }} --draft=false + # gh release edit v${{ github.ref_name }} --draft=false run: | gh release edit ${{ github.event.release.tag_name }} --draft=false From 932629178086b809c4d10cd47c068de12198cd9e Mon Sep 17 00:00:00 2001 From: charlesgauthereau Date: Fri, 6 Mar 2026 13:12:37 +0100 Subject: [PATCH 25/27] fix --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c4f8535f..ea67856b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,7 +19,7 @@ jobs: steps: - name: Read draft tag run: | - echo ${{ github.event.release.tag_name }} + echo ${{ github.event.release.id }} docker_publish: uses: ./.github/workflows/docker.yml @@ -43,7 +43,7 @@ jobs: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} # gh release edit v${{ github.ref_name }} --draft=false run: | - gh release edit ${{ github.event.release.tag_name }} --draft=false + gh release edit ${{ github.event.release.id }} --draft=false discord_notification: needs: docker_publish From ff83ee9c62f9479fe9da5d4b465aca3f16ef1094 Mon Sep 17 00:00:00 2001 From: charlesgauthereau Date: Fri, 6 Mar 2026 13:24:18 +0100 Subject: [PATCH 26/27] fix --- .github/workflows/release.yml | 26 ++++++++++++++++++++------ .release-it.json | 4 ++-- 2 files changed, 22 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ea67856b..e9da0acf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,10 +3,10 @@ name: Publish Docker image for release on: release: types: [ created ] - push: - tags: - - "*.*.*" - - "!*-*" +# push: +# tags: +# - "*.*.*" +# - "!*-*" permissions: contents: read @@ -37,13 +37,27 @@ jobs: with: fetch-depth: 0 + - name: Get draft release tag + if: ${{ github.event.release.draft == true }} + id: draft_tag + run: | + TAG=$(gh release view ${{ github.event.release.id }} --json tagName -q ".tagName") + echo "RELEASE_TAG=$TAG" >> $GITHUB_ENV + + +# - name: Publish GitHub Release +# if: ${{ github.event.release.draft == true }} +# env: +# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# # gh release edit v${{ github.ref_name }} --draft=false +# run: | +# gh release edit ${{ github.event.release.id }} --draft=false - name: Publish GitHub Release if: ${{ github.event.release.draft == true }} env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # gh release edit v${{ github.ref_name }} --draft=false run: | - gh release edit ${{ github.event.release.id }} --draft=false + gh release edit $RELEASE_TAG --draft=false discord_notification: needs: docker_publish diff --git a/.release-it.json b/.release-it.json index 6bd22c9b..36eb86dd 100644 --- a/.release-it.json +++ b/.release-it.json @@ -7,10 +7,10 @@ }, "git": { "commit": true, - "commitMessage": "chore: release v${version}", + "commitMessage": "chore: release ${version}", "requireCleanWorkingDir": true, "tag": true, - "tagName": "v${version}", + "tagName": "${version}", "push": true }, "plugins": { From 29344e0c48dc3a716d678064ccd4cb4391d046fb Mon Sep 17 00:00:00 2001 From: charlesgauthereau Date: Fri, 6 Mar 2026 13:29:27 +0100 Subject: [PATCH 27/27] fix --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e9da0acf..18355ea5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,7 +2,7 @@ name: Publish Docker image for release on: release: - types: [ created ] + types: [created, edited] # push: # tags: # - "*.*.*"