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