Repository navigation
fix(ci): stop forwarding --if-present to the test script on publish - #28
Conversation
pnpm consumes --if-present only when it precedes the script name. Trailing it, the flag is forwarded to the script, so the step ran `vitest run --if-present`: CACError: Unknown option `--ifPresent` Harmless while there was no `test` script, because pnpm skipped the missing script and forwarded nothing. Adding one in 0b1774f made the flag reach vitest, so release-and-publish has failed on every merge since, and 0.4.4 and 0.5.0 were never published. npm is still on 0.4.3. Dropped rather than reordered: the guard has no purpose now that the script is permanent, and it is what hid the failure for two releases. ci.yml was never affected, it calls `pnpm test`. Publishing 0.5.0 needs a workflow_dispatch run, since this workflow triggers on pushes to main that touch package.json and this change does not. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
✅ Deploy Preview for react-responsive-overflow-list ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Warning Review limit reached
Next review available in: 5 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the 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 configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Comment |
release-and-publishhas failed on every merge since #25, so nothing has published since #24. npm is on0.4.3;mainis on0.5.0.Cause
.github/workflows/publish.yml:pnpm consumes
--if-presentonly when it precedes the script name. Trailing it, the flag is forwarded to the script, so the step ranvitest run --if-present:It sat there harmlessly for a long time because there was no
testscript: pnpm skipped the missing script and forwarded nothing. Commit 0b1774f (#25) added"test": "vitest run", so the flag started reaching vitest.testscript)ci.ymlwas never affected, since it callspnpm test.Fix
Dropped the flag rather than reordering it. The guard has no purpose now that the script is permanent, and it is precisely what hid the failure for two releases. Verified
pnpm -s testruns the suite (45 passed) and that no other workflow has the same ordering.Releasing 0.5.0
Merging this does not publish. The workflow triggers on pushes to
mainthat touchpackage.json, and this change does not touch it. Re-running the failed run would not help either, since a re-run uses the workflow file at that commit, which still has the bug.So
0.5.0needs aworkflow_dispatchrun after this merges. The job already skips when the version is on npm, so it is safe to dispatch.🤖 Generated with Claude Code