Skip to content

Make npm releases idempotent - #5

Merged
zhou-wang-git merged 1 commit into
mainfrom
codex/make-release-idempotent
Jul 16, 2026
Merged

Make npm releases idempotent#5
zhou-wang-git merged 1 commit into
mainfrom
codex/make-release-idempotent

Conversation

@zhou-wang-git

Copy link
Copy Markdown
Member

What changed\n\n- detect whether each release version already exists on npm\n- skip only the package that is already published\n- expose the verified package version as a workflow output\n\n## Why\n\nVersion 0.1.0 was published manually before trusted publishing was configured. Creating its historical GitHub Release must not attempt an immutable duplicate npm publication. The same guard also makes future reruns safe after a partially completed release.\n\n## Validation\n\n- pnpm check (22 tests)\n- pnpm build\n- workflow YAML parsed successfully\n- both existing 0.1.0 registry lookups succeeded

@zhou-wang-git
zhou-wang-git marked this pull request as ready for review July 16, 2026 15:24
@zhou-wang-git
zhou-wang-git merged commit 4bf802d into main Jul 16, 2026
6 checks passed
@zhou-wang-git
zhou-wang-git deleted the codex/make-release-idempotent branch July 16, 2026 15:24
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