[CP-1323] ci: 워크플로우의 죽은 npm 인증 설정 제거 - #155
Merged
Merged
Conversation
npm trusted publishing(OIDC)으로 퍼블리시하므로 토큰 기반 설정이 더 이상 필요 없다. - registry-url: OIDC에 불필요하며, .npmrc 에 빈 _authToken 을 써서 npm 이 인증이 설정된 것으로 오인하고 OIDC 교환을 건너뛰게 만드는 알려진 함정 (actions/setup-node#1551) - NODE_AUTH_TOKEN: 의존성이 모두 public 이라 install 에 registry 인증이 필요 없다 - NPM_CONFIG_PROVENANCE: trusted publishing 이 provenance 를 자동 생성한다 CP-1323 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
standard-public-interfaces 를 소스로 전환(#153)하면서 레지스트리 인증이 필요한 의존성이 사라졌다. registry-url 은 NODE_AUTH_TOKEN 주입 전용이므로 함께 제거한다. CP-1323 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.
배경
두 가지 변화로 워크플로우의 npm 인증 설정이 전부 불필요해졌습니다.
release.yml의 publish 경로에 토큰이 필요 없습니다.standard-public-interfaces를 소스로 전환한 chore: standard-public-interfaces 타입을 2.17.1 로 갱신 #153 이후pnpm install이 인증 없이 완결됩니다.변경
ci.yml과release.yml에서 아래 설정을 제거합니다.NODE_AUTH_TOKENregistry-urlNODE_AUTH_TOKEN주입 전용 설정입니다. 게다가.npmrc에 빈_authToken=을 써서 npm이 인증이 설정된 것으로 오인하고 OIDC 교환을 건너뛰게 만드는 알려진 함정이라(actions/setup-node#1551), 남겨두면 publish 경로에 해롭습니다NPM_CONFIG_PROVENANCEpermissions3종(contents·pull-requests·id-token)과cache: 'pnpm',version/publish커맨드,build/typecheck스텝은 그대로 둡니다.검증
ci.yml변경은 이 PR의 CI가 그대로 검증합니다 — install이 인증 없이 통과하는 것이 곧 실증입니다. install 스텝 구조가 같으므로release.yml의 install도 함께 뒷받침됩니다.다만 publish 경로는 changeset이 실제로 쌓인 릴리즈에서만 검증됩니다. changeset이 없으면 publish를 타지 않아 no-op으로 통과하므로, 다음 퍼블리시에서 아래 두 가지를 확인해야 합니다.
using npm trusted publishing+published successfully🤖 Generated with Claude Code