From a10f66f70b0f74422f5f6ec70cd391022b30cd8e Mon Sep 17 00:00:00 2001 From: Aleksandr Pasevin Date: Wed, 13 Aug 2025 11:24:31 +0300 Subject: [PATCH 1/2] fix(ci): restore signed commits using changesets API with husky file fix --- .github/workflows/update-versions.yml | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/.github/workflows/update-versions.yml b/.github/workflows/update-versions.yml index 575293117..be5762bea 100644 --- a/.github/workflows/update-versions.yml +++ b/.github/workflows/update-versions.yml @@ -56,16 +56,19 @@ jobs: echo "changed=true" >> $GITHUB_OUTPUT fi - - name: Commit and push changes + - name: Temporarily make Husky files non-executable for API compatibility if: steps.check-changes.outputs.changed == 'true' - env: - HUSKY: 0 # Disable husky hooks for automated commits run: | - git config --local user.email "github-actions[bot]@users.noreply.github.com" - git config --local user.name "github-actions[bot]" - # Checkout the proper branch (handle both PR and push events) - BRANCH_NAME="${{ github.head_ref || github.ref_name }}" - git checkout "$BRANCH_NAME" - git add packages/builder/src/export/versions.ts - git commit -m "chore: update export versions" - git push origin "$BRANCH_NAME" + chmod -x .husky/* 2>/dev/null || true + + - name: Create signed commit using changesets action + if: steps.check-changes.outputs.changed == 'true' + id: changesets + uses: changesets/action@e0145edc7d9d8679003495b11f87bd8ef63c0cba # v1.5.3 + with: + commit: 'chore: update export versions' + title: 'chore: update export versions' + setupGitUser: true + createGithubReleases: false + env: + GITHUB_TOKEN: ${{ steps.gh-app-token.outputs.token }} From 46c55e32e01521ff21fd908cdbba5dbe81a433e5 Mon Sep 17 00:00:00 2001 From: Aleksandr Pasevin Date: Wed, 13 Aug 2025 11:44:28 +0300 Subject: [PATCH 2/2] fix(ci): simplify signed commits using git commands with github app token --- .github/workflows/update-versions.yml | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/.github/workflows/update-versions.yml b/.github/workflows/update-versions.yml index be5762bea..ed34c62bc 100644 --- a/.github/workflows/update-versions.yml +++ b/.github/workflows/update-versions.yml @@ -56,19 +56,14 @@ jobs: echo "changed=true" >> $GITHUB_OUTPUT fi - - name: Temporarily make Husky files non-executable for API compatibility + - name: Commit changes if: steps.check-changes.outputs.changed == 'true' - run: | - chmod -x .husky/* 2>/dev/null || true - - - name: Create signed commit using changesets action - if: steps.check-changes.outputs.changed == 'true' - id: changesets - uses: changesets/action@e0145edc7d9d8679003495b11f87bd8ef63c0cba # v1.5.3 - with: - commit: 'chore: update export versions' - title: 'chore: update export versions' - setupGitUser: true - createGithubReleases: false env: GITHUB_TOKEN: ${{ steps.gh-app-token.outputs.token }} + HUSKY: 0 # Disable husky hooks for automated commits + run: | + git config --local user.email "github-actions[bot]@users.noreply.github.com" + git config --local user.name "github-actions[bot]" + git add packages/builder/src/export/versions.ts + git commit -m "chore: update export versions" + git push