Skip to content

fix(ci): resume partial pnpr npm publishes - #13635

Merged
zkochan merged 2 commits into
pnpm:mainfrom
YESHYUNGSEOK:fix/pnpr-publish-resume
Aug 7, 2026
Merged

zkochan merged 2 commits into
pnpm:mainfrom
YESHYUNGSEOK:fix/pnpr-publish-resume

Conversation

@YESHYUNGSEOK

@YESHYUNGSEOK YESHYUNGSEOK commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

A rerun after a partial pnpr npm publication tried to publish every native package again. npm's immutable versions then caused the workflow to fail before it could publish the missing packages or wrapper.

  • Reuse the workflow's publication-state helper for each native pnpr package.
  • Skip versions that are already published and publish only missing versions.
  • Abort on registry lookup errors and keep the wrapper publication last.

Squash Commit Body

Make pnpr npm publication resumable after a partially successful run. Check each native package's publication state, skip immutable versions that already exist, and publish only missing packages.

Treat lookup failures as fatal rather than as missing versions, and continue publishing the wrapper only after every native package is confirmed available.

Checklist

  • Verified the workflow YAML, the publication-state helper tests, and mixed-state resume behavior.

Written by an agent (Codex, GPT-5).


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

Summary by CodeRabbit

  • Bug Fixes
    • Improved package release handling by skipping packages that are already published.
    • Packages missing from the registry are now published automatically.
    • Releases now fail clearly when an unexpected registry state is detected.

@YESHYUNGSEOK
YESHYUNGSEOK requested a review from zkochan as a code owner August 4, 2026 07:15
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@greptile-apps

greptile-apps Bot commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Reviews (2): Last reviewed commit: "fix(ci): name the package in the unexpec..." | Re-trigger Greptile

@coderabbitai

coderabbitai Bot commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Review limit reached

@zkochan, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 3 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 17c81293-7a76-4f7e-8fd9-522e301ddd59

📥 Commits

Reviewing files that changed from the base of the PR and between 809fca0 and f8ea92b.

📒 Files selected for processing (1)
  • .github/workflows/release.yml
📝 Walkthrough

Walkthrough

The release workflow now checks each pnpr package on npm before publishing. It skips published packages, publishes missing packages, and fails on unexpected registry states.

Changes

pnpr publication workflow

Layer / File(s) Summary
Publication state handling
.github/workflows/release.yml
The package loop derives each package name and version, checks npm publication state, skips published packages, publishes missing packages, and exits for unexpected states.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

  • pnpm/pnpm#13128: Both changes update npm publication-state handling in .github/workflows/release.yml.
  • pnpm/pnpm#13483: Both changes conditionally publish packages based on npm publication state.
  • pnpm/pnpm#13702: Both changes skip packages that are already published.

Suggested reviewers: zkochan

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added the reviewed: coderabbit CodeRabbit submitted an approving review label Aug 4, 2026
@zkochan
zkochan force-pushed the fix/pnpr-publish-resume branch from 577c3b6 to 809fca0 Compare August 7, 2026 13:52
@coderabbitai

coderabbitai Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Note

GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer.

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

/improve is deprecated. Use /agentic_review instead (removal date not yet scheduled).

No code suggestions found for the PR.

@zkochan
zkochan merged commit 97f20b0 into pnpm:main Aug 7, 2026
23 checks passed
@qodo-code-review

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

To customize comments, go to the Qodo configuration screen, or learn more in the docs.

Qodo Logo

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

/improve is deprecated. Use /agentic_review instead (removal date not yet scheduled).

No code suggestions found for the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

reviewed: coderabbit CodeRabbit submitted an approving review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants