Skip to content

ci: add publish_only dispatch to republish stuck npm versions#23

Merged
amondnet merged 2 commits into
mainfrom
ci/publish-only-dispatch
Jun 2, 2026
Merged

ci: add publish_only dispatch to republish stuck npm versions#23
amondnet merged 2 commits into
mainfrom
ci/publish-only-dispatch

Conversation

@amondnet
Copy link
Copy Markdown
Contributor

@amondnet amondnet commented Jun 2, 2026

배경

#21로 발행 워크플로우를 bun pm pack + npm publish(tokenless OIDC)로 고쳤지만, 이미 태그된 채 npm에 안 올라간 버전들을 발행할 경로가 없습니다:

패키지 npm 현재 릴리스 태그 상태
@pleaseai/eslint-config 0.0.3 v0.0.4 미발행
@pleaseai/code-style 0.0.1 v0.0.3 0.0.2·0.0.3 미발행
@pleaseai/prettier-config 미발행 (없음) 미발행

publish job은 release-please가 새 릴리스를 cut할 때만 돌기 때문에, 위 버전들(옛 bun publish로 시도하다 실패한 것들)을 다시 발행할 방법이 없습니다. 실패한 옛 런을 re-run하면 그 커밋 시점의 옛 워크플로우로 돌아 또 실패합니다.

변경

자매 repo pleaseai/ask와 동일하게 workflow_dispatch publish_only 경로를 추가합니다:

  • publish_only 디스패치 시 release-please job은 skip
  • publish job과 각 스텝이 workflow_dispatch에서도 실행 (always() + inputs.publish_only)
  • npm view 가드로 멱등성 유지 → 이미 올라간 버전은 자동 skip, 현재 package.json 버전만 발행
  • @pleaseai/prettier-configversion 필드(0.0.1, manifest와 일치) 추가 — 없어서 pack/publish가 버전을 못 잡던 문제 해결

머지 후 트리거

trusted publisher 설정은 완료된 상태이므로, 머지 후:

gh workflow run release-please.yml -f publish_only=true --repo pleaseai/code-style

→ 현재 버전(eslint 0.0.4 / code-style 0.0.3 / prettier 0.0.1)이 OIDC로 발행됩니다.

검증

  • YAML 유효 / bun pm pack --dry-runpleaseai-prettier-config-0.0.1.tgz 등 tarball 이름 확인
  • 평상시 push 경로 동작은 그대로(조건만 OR로 확장)

The publish job only runs when release-please cuts a release, so the
versions already tagged but never landed on npm (eslint-config 0.0.4,
code-style 0.0.3, prettier-config 0.0.1 — the publish that failed under
the old bun publish) had no way to be (re)published.

Add a workflow_dispatch publish_only path (mirrors pleaseai/ask):
- release-please job is skipped on publish_only
- publish job + each step also run on workflow_dispatch
- npm view guard keeps it idempotent (already-published versions skip)

Also give @pleaseai/prettier-config a version field (0.0.1, matching the
release-please manifest) — it had none, so pack/publish couldn't resolve
a version.
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds a version field to the package.json of the Prettier configuration package. The reviewer identified a typo in the directory name, 'perttier-config' instead of 'prettier-config', and recommended renaming it to ensure consistency with the package name.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@@ -1,5 +1,6 @@
{
"name": "@pleaseai/prettier-config",
"version": "0.0.1",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

현재 패키지가 위치한 디렉터리 경로가 packages/perttier-config로 되어 있어 prettier에 오타(perttier)가 존재합니다. 패키지 명인 @pleaseai/prettier-config 및 실제 도구 이름인 Prettier와 일치하도록 디렉터리명을 prettier-config로 변경하는 것을 권장합니다.

Satisfies the yaml/plain-scalar lint rule.
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Jun 2, 2026

Deploying code-style with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3d0652f
Status: ✅  Deploy successful!
Preview URL: https://a156c1f2.code-style.pages.dev
Branch Preview URL: https://ci-publish-only-dispatch.code-style.pages.dev

View logs

@amondnet amondnet merged commit ae6286b into main Jun 2, 2026
1 of 2 checks passed
@amondnet amondnet deleted the ci/publish-only-dispatch branch June 2, 2026 01:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant