feat(ci): integrate GitHub App token for release workflow - #50
Conversation
…ross commands - Add refactor-clean.md command for dead code detection and removal - Change all hint fields to argument-hint for consistency - Add appropriate argument hints to all commands
Release workflow에 GitHub App token을 통합하여 다음 기능을 활성화: - **CI 자동 트리거**: Release PR이 CI workflow를 자동으로 실행 - **Issues 권한 추가**: semantic-release가 issue 코멘트를 작성할 수 있도록 설정 - **테스트 자동화**: Release 전 BATS 테스트를 실행하여 코드 품질 검증 - **Rate limit 증가**: 1,000 → 5,000 requests/hour ## 주요 변경사항 1. **GitHub App token 생성** - actions/create-github-app-token@v1 사용 - MY_RELEASER_ID, MY_RELEASER_PRIVATE_KEY secrets 필요 2. **Checkout 개선** - GitHub App token 전달 - persist-credentials: false (충돌 방지) 3. **테스트 추가** - npm ci로 의존성 설치 - BATS 테스트 실행 4. **Release 단계** - GITHUB_TOKEN을 GitHub App token으로 교체 - PR merge 시 최종 release 수행 ## 참고 - 프로덕션 검증된 패턴 적용 - semantic-release 공식 지원 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughThe PR enhances the CI/CD release workflow with GitHub App token generation, introduces conditional release logic for merged pull requests, and adds argument-hint metadata to command documentation files alongside a new refactor-clean workflow guide. Changes
Sequence Diagram(s)sequenceDiagram
participant GHA as GitHub Actions
participant Token as GitHub App
participant SR as Semantic Release
participant Git as Git Repository
participant API as GitHub API
GHA->>Token: Generate App Token
Token-->>GHA: Token Created
GHA->>Git: Checkout with App Token
GHA->>SR: Run Tests
SR-->>GHA: Tests Pass/Fail
alt Merged PR Event
GHA->>SR: semantic-release (final)
SR->>Git: Create Tag & Release
Git->>API: Push Tag
API->>GHA: Release Created
else Non-Merged Event
GHA->>SR: semantic-release (version update)
SR->>Git: Update marketplace.json
alt Version Changed
GHA->>Git: Create release-v* branch
Git->>API: Push Branch
API->>GHA: PR Created
else No Changes
GHA->>GHA: Skip Release
end
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
Poem
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Release workflow에 GitHub App token을 통합하여 다음 기능을 활성화:
주요 개선사항
변경사항
GitHub App token 생성
Checkout 개선
테스트 추가
Release 단계
GitHub App 정보
참고
Summary by CodeRabbit
Documentation
Chores
✏️ Tip: You can customize this high-level summary in your review settings.