Skip to content

fix(ci): make npm-publish idempotent (skip already-published versions)#4870

Merged
proggeramlug merged 1 commit into
mainfrom
fix/npm-publish-idempotent
Jun 10, 2026
Merged

fix(ci): make npm-publish idempotent (skip already-published versions)#4870
proggeramlug merged 1 commit into
mainfrom
fix/npm-publish-idempotent

Conversation

@proggeramlug

Copy link
Copy Markdown
Contributor

At v0.5.1151, a transient artifact digest-mismatch killed npm-publish after the two darwin packages had published. Every re-run then died on loop iteration 1 with:

npm error You cannot publish over the previously published versions: 0.5.1151.

…so @perryts/perry-linux-*, -win32-x64, and the @perryts/perry wrapper can never publish from re-runs of the tag run (run 27239815088, 2 failures).

Fix: npm view name@ver per package and skip versions already on the registry — both for the platform loop and the wrapper. Re-runs and the workflow_dispatch publish_npm=true recovery path now converge.

After merge I'll dispatch release-packages.yml on main with publish_npm=true to publish the six missing 0.5.1151 packages.

At v0.5.1151 a transient artifact digest-mismatch killed npm-publish
after @perryts/perry-darwin-arm64 and -darwin-x64 had published; every
re-run then died on the first loop iteration with "You cannot publish
over the previously published versions", so the remaining five platform
packages and the @perryts/perry wrapper could never go out (run
27239815088). Check the registry per package and skip versions that are
already there — re-runs and the workflow_dispatch publish_npm=true
recovery path now converge instead of hard-failing.
@proggeramlug proggeramlug merged commit 16f537f into main Jun 10, 2026
13 checks passed
@proggeramlug proggeramlug deleted the fix/npm-publish-idempotent branch June 10, 2026 02:08
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