From e2670a3a02df7e89374f945a528deb4a3188196f Mon Sep 17 00:00:00 2001 From: matt Date: Wed, 11 Feb 2026 22:20:51 +0900 Subject: [PATCH] Enhance CI and release workflows for improved efficiency - Updated CI workflow to trigger on specific paths for pushes and pull requests, ensuring relevant changes are monitored. - Integrated retry logic in the release workflow for macOS packaging to enhance reliability during the build process. --- .github/workflows/ci.yml | 20 ++++++++++++++++++++ .github/workflows/release.yml | 7 ++++++- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 73bef54c..fb03825e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,8 +3,28 @@ name: CI on: push: branches: [main] + paths: + - 'src/**' + - 'test/**' + - 'package.json' + - 'pnpm-lock.yaml' + - 'tsconfig*.json' + - 'vite*.config.*' + - 'vitest*.config.*' + - 'tailwind.config.*' + - 'eslint.config.*' pull_request: branches: [main] + paths: + - 'src/**' + - 'test/**' + - 'package.json' + - 'pnpm-lock.yaml' + - 'tsconfig*.json' + - 'vite*.config.*' + - 'vitest*.config.*' + - 'tailwind.config.*' + - 'eslint.config.*' jobs: validate: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bcf51828..614018bf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,6 +33,12 @@ jobs: run: pnpm build - name: Package macOS + uses: nick-fields/retry@v3 + with: + timeout_minutes: 30 + max_attempts: 3 + retry_wait_seconds: 10 + command: pnpm dist:mac --publish always env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} CSC_LINK: ${{ secrets.CSC_LINK }} @@ -40,7 +46,6 @@ jobs: APPLE_ID: ${{ secrets.APPLE_ID }} APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }} APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }} - run: pnpm dist:mac --publish always package-win: runs-on: windows-latest