fix(release): restore npm publishing with a verified npm version - #10
Merged
Merged
Conversation
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.
Summary
Fix the
0.2.0release failing innpm publishwithCannot find module 'sigstore'. Pin npm12.0.2consistently across preflight, publishing, and registry verification, and dry-run the publishing command on the packed artifact during preflight before creating a release tag.Document how to resume a tagged release after a workflow-only fix and clarify the SHA input description. Package source, package version, existing tags, and release notes are unchanged.
Why
The npm
12.0.0distribution omitted thesigstoredependency required bylibnpmpublish. The upstream correction shipped in npm12.0.1: npm/cli#9740.Failed release: https://github.com/QoderAI/qoder-cloud-agents-sdk-ts/actions/runs/35983109046.
Verification
12.0.0and12.0.2tarballs and verified their registry integrity hashes.qca-sdk-0.2.0.tgzartifact from the failed run, npm12.0.0reproduces the missing-sigstorefailure; npm12.0.2succeeds withpublish --dry-run --ignore-scripts --provenance --access public --tag latestusing empty credentials/configuration. No package was uploaded.actionlint1.7.12 validates the release workflow (external shellcheck/pyflakes integrations disabled).git diff --checkpassed.The dry-run validates CLI loading and package handling. OIDC authorization, provenance generation, and registry upload still require the approved release job.
Impact and release recovery
After merging, start a new
release.ymlrun frommainwith the same original inputs:The annotated
v0.2.0tag already points to that SHA, while npm has no0.2.0package yet. The workflow already supports resuming this tagged commit after main advances. Keep the tag unchanged. Re-running the old failed run would retain its old workflow revision and npm pin.