From c657bdfb63b813cb388735357fc79ad0f8e116b5 Mon Sep 17 00:00:00 2001 From: charlesgauthereau Date: Fri, 6 Mar 2026 09:10:47 +0100 Subject: [PATCH 01/16] 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/16] 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/16] 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/16] 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/16] 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/16] 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/16] 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/16] 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/16] 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/16] 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/16] 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/16] 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/16] 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/16] 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/16] 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/16] 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 }}