ci(release): 태그 릴리즈에 npm publish 스텝 추가#28
Merged
Conversation
기존 워크플로는 GitHub Release만 만들고 npm 발행은 수동이었다. 태그(zpl-core/v*·react-zpl/v*) 푸시 시 해당 패키지를 npm에 발행하도록 추가. - pnpm publish로 workspace:* 의존성을 실제 버전으로 치환 (npm publish는 미치환) - --filter "<name>..." 로 대상 패키지의 워크스페이스 의존성까지 위상 순서 빌드 - 프리릴리즈(-rc 등)는 latest 대신 rc dist-tag로 발행 - 이미 올라간 버전은 재실행 시 스킵 (npm 덮어쓰기 금지 대응) - id-token: write + --provenance 로 공급 출처 증명 첨부 발행 토큰은 NPM_TOKEN 시크릿으로 주입한다(레포 설정 필요). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
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.
개요
기존 release 워크플로는 태그 푸시 시 GitHub Release만 만들고 npm 발행은 수동이었습니다. 태그(
zpl-core/v*·react-zpl/v*) 푸시에 해당 패키지를 npm에 발행하는 스텝을 추가합니다.동작
pnpm install--filter "<name>..."로 대상 패키지 + 워크스페이스 의존성 위상 순서 빌드pnpm publish(이미 있는 버전은 스킵)설계 포인트
pnpm publish사용 — react-zpl의workspace:*/workspace:^의존성을 발행 시 실제 버전으로 치환 (npm publish는 미치환)files: ["dist"]라 dist 없이 발행하면 빈 패키지가 나감-rc등은latest가 아닌rc태그로 발행npm view <pkg>@<없는버전>이 exit 1을 반환함을 실측해 가드 정상 동작 확인id-token: write+--provenance로 공급 출처 증명 첨부머지 전 필요
레포에
NPM_TOKEN시크릿 등록 필요 (Settings → Secrets and variables → Actions). npm Automation 토큰 권장. provenance는 public 레포에서 동작합니다.