Repository navigation
chore(ci): GitHub Actions CI·릴리즈 자동화 워크플로 추가 - #4
Merged
Merged
Conversation
지금까지 CI가 전혀 없어 테스트·빌드 검증이 로컬 수동에 의존했고, npm 배포도 git 태그 없이 수동으로 이뤄져 npm 버전과 코드 시점의 매핑이 남지 않았다(0.2.0 태그 부재). v0.3.0부터는 태그 push 한 번으로 검증→npm publish→GitHub Release 생성까지 자동으로 흐르게 하고, PR마다 빌드·타입체크·테스트가 게이트로 돈다. * .github/workflows/ci.yml: PR·main push 시 node 20/24 매트릭스로 npm ci → build → tsc --noEmit → vitest 실행 -> engines 최소선(20)과 최신 LTS(24) 양쪽에서 회귀를 머지 전에 차단 * .github/workflows/release.yml: v* 태그 push 시 태그↔package.json 버전 가드 → 검증 → npm publish(Trusted Publishing OIDC, provenance) → gh release create --generate-notes -> 토큰 시크릿 관리 없이 태그 한 번으로 배포+릴리즈 완결, 버전 불일치 태그는 배포 전에 실패 * 인증 전제: npmjs.com termfc 패키지 설정에 GitHub Actions(juunghyun/termfc, release.yml) trusted publisher 등록 필요 — 워크플로 주석에 명시 테스트: python3 yaml.safe_load / npx js-yaml로 두 파일 문법 검증 통과. 워크플로 실제 실행은 로컬 불가 — not-run, 이 브랜치의 PR 생성 시 ci.yml이 자체 검증됨
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
지금까지 CI가 전혀 없어 테스트·빌드 검증이 로컬 수동에 의존했고, npm 배포도 git 태그 없이 수동으로 이뤄져 npm 버전과 코드 시점의 매핑이 남지 않았다(0.2.0 태그 부재). v0.3.0부터는 태그 push 한 번으로 검증→npm publish→GitHub Release 생성까지 자동으로 흐르게 하고, PR마다 빌드·타입체크·테스트가 게이트로 돈다.
테스트: python3 yaml.safe_load / npx js-yaml로 두 파일 문법 검증 통과. 워크플로 실제 실행은 로컬 불가 — not-run, 이 브랜치의 PR 생성 시 ci.yml이 자체 검증됨