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.
This commit is contained in:
matt 2026-02-11 22:20:51 +09:00
parent 09c1304c82
commit e2670a3a02
2 changed files with 26 additions and 1 deletions

View file

@ -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:

View file

@ -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