Skip to content

Commit aaf4bab

Browse files
committed
name change
1 parent 684705f commit aaf4bab

11 files changed

Lines changed: 55 additions & 81 deletions

File tree

.changeset/curly-cycles-wave.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@hyunrim03/clickvoidx": patch
3+
---
4+
5+
Rename the published package from `@hyunrim03/core` to `@hyunrim03/clickvoidx` so the install name matches the project identity.

.github/workflows/release.yml

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -42,22 +42,6 @@ jobs:
4242
- name: Install dependencies
4343
run: bun install --frozen-lockfile
4444

45-
- name: Debug release target and auth mode
46-
run: |
47-
echo "package_name=$(node -p "require('./packages/core/package.json').name")"
48-
echo "package_version=$(node -p "require('./packages/core/package.json').version")"
49-
echo "repository_url=$(node -p "require('./packages/core/package.json').repository.url")"
50-
echo "registry=$(npm config get registry)"
51-
if [ -n "${ACTIONS_ID_TOKEN_REQUEST_TOKEN:-}" ] && [ -n "${ACTIONS_ID_TOKEN_REQUEST_URL:-}" ]; then
52-
echo "oidc=available"
53-
else
54-
echo "oidc=unavailable"
55-
fi
56-
echo "npm_token=not-passed-to-oidc-debug-step"
57-
echo "oidc_claims_start"
58-
bun ./scripts/print-oidc-claims.mjs
59-
echo "oidc_claims_end"
60-
6145
- name: Run lint
6246
run: bun run lint
6347

@@ -87,3 +71,6 @@ jobs:
8771
publish: bun run release:publish
8872
env:
8973
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
74+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
75+
NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }}
76+
FORCE_NPM_TOKEN_PUBLISH: "1"

README.ko.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ bun run release:dry-run
3434
## 패키지 사용 예시
3535

3636
```ts
37-
import { createDeadClickDetector } from "@hyunrim03/core";
37+
import { createDeadClickDetector } from "@hyunrim03/clickvoidx";
3838

3939
const detector = createDeadClickDetector({
4040
onDeadClick(report) {

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ bun run release:dry-run
3434
## Package usage
3535

3636
```ts
37-
import { createDeadClickDetector } from "@hyunrim03/core";
37+
import { createDeadClickDetector } from "@hyunrim03/clickvoidx";
3838

3939
const detector = createDeadClickDetector({
4040
onDeadClick(report) {

bun.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/release-process.en.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,25 @@ Set `FORCE_NPM_TOKEN_PUBLISH=1` only if you intentionally want to override that
5555

5656
This avoids the 2FA-token problem entirely.
5757

58+
## OIDC troubleshooting note
59+
60+
If npm trusted publishing is configured but publish still fails with a 404/permission-style error, verify the package-level Trusted Publisher values against the actual GitHub OIDC claims emitted by the workflow.
61+
62+
Important findings from this repository:
63+
- npm matches the GitHub owner string very strictly
64+
- `indianapoly` and `indianaPoly` are **not** interchangeable in practice
65+
- the working value must match the OIDC claim exactly, including letter case
66+
67+
For this repository the successful package-level Trusted Publisher settings are:
68+
- **Organization or user:** `indianaPoly`
69+
- **Repository:** `clickvoidx`
70+
- **Workflow filename:** `release.yml`
71+
- **Environment name:** leave empty
72+
73+
When debugging OIDC issues, prefer a single authentication path:
74+
- remove `NPM_TOKEN` from the release job to test pure OIDC
75+
- only re-enable token-based publishing when you intentionally want a fallback path
76+
5877
## Recommended repository settings
5978

6079
The workflow file cannot fully prevent direct pushes to `main`. Configure these GitHub repository settings:

docs/release-process.ko.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,25 @@
5656

5757
이 방식은 2FA 토큰 문제를 피할 수 있습니다.
5858

59+
## OIDC 트러블슈팅 메모
60+
61+
npm trusted publishing을 설정했는데도 404/permission 계열 에러가 난다면, npm package settings의 Trusted Publisher 값과 GitHub workflow가 실제로 발급한 OIDC claim 값을 직접 비교해야 합니다.
62+
63+
이 저장소에서 확인된 중요한 포인트:
64+
- npm은 GitHub owner 문자열을 매우 엄격하게 비교합니다
65+
- `indianapoly``indianaPoly` 는 실제로 동일하게 취급되지 않을 수 있습니다
66+
- 즉, 대소문자까지 포함해 OIDC claim 값과 **완전히 동일한 문자열**을 넣어야 합니다
67+
68+
이 저장소에서 최종적으로 성공한 package-level Trusted Publisher 값:
69+
- **Organization or user:** `indianaPoly`
70+
- **Repository:** `clickvoidx`
71+
- **Workflow filename:** `release.yml`
72+
- **Environment name:** 비워두기
73+
74+
OIDC를 디버깅할 때는 인증 경로를 하나로 유지하는 것이 좋습니다.
75+
- 순수 OIDC 검증 시 release job에서 `NPM_TOKEN` 제거
76+
- 토큰은 fallback이 필요할 때만 다시 활성화
77+
5978
## 권장 GitHub 저장소 설정
6079

6180
워크플로 파일만으로는 `main` 직접 push를 완전히 막을 수 없습니다. 다음 저장소 설정을 함께 권장합니다.

packages/core/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# @hyunrim03/core
1+
# @hyunrim03/clickvoidx
22

33
## 0.1.2
44

packages/core/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# @hyunrim03/core
1+
# @hyunrim03/clickvoidx
22

33
A Bun-friendly TypeScript package for detecting dead clicks in browser applications.
44

@@ -12,7 +12,7 @@ A Bun-friendly TypeScript package for detecting dead clicks in browser applicati
1212
## Quick example
1313

1414
```ts
15-
import { createDeadClickDetector } from "@hyunrim03/core";
15+
import { createDeadClickDetector } from "@hyunrim03/clickvoidx";
1616

1717
const detector = createDeadClickDetector({
1818
onDeadClick(report) {

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@hyunrim03/core",
2+
"name": "@hyunrim03/clickvoidx",
33
"version": "0.1.2",
44
"description": "Dead-click detection core package for browser applications.",
55
"repository": {

0 commit comments

Comments
 (0)