Skip to content

Fix the release tarball check against npm@latest - #7

Merged
chidiwilliams merged 1 commit into
mainfrom
chidi/fix-pack-check
Aug 7, 2026
Merged

chidiwilliams merged 1 commit into
mainfrom
chidi/fix-pack-check

Conversation

@chidiwilliams

@chidiwilliams chidiwilliams commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor

v0.1.1 has failed to publish twice at Pack and check the tarball.

The first run was the GitHub Actions outage — it hung for 30 minutes. The rerun failed in 23 seconds with the real cause:

TypeError: Cannot read properties of undefined (reading 'files')

The step above installs npm@latest, and newer npm no longer returns an array from npm pack --json whose [0] holds the file list. Under npm 10 locally it still does, which is why this passed when it was written.

Nothing is wrong with the package: every required file was present at that tag, and files is unchanged.

Fix: pack to a temp directory and read the artifact with tar -tzf, which does not depend on a JSON shape npm is free to change. Verified locally — it lists the same 4 files and still fails loudly when a required one is absent.

The same fix has gone into rulebase-cli, whose syntax-check.mjs had the identical bug and would have hit it on its first tagged release.

After merging, rerun the v0.1.1 release to publish rulebase-skills@0.1.1.


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

The v0.1.1 release has failed twice at this step. The second run took 23s and
ended with "Cannot read properties of undefined (reading 'files')": the step
above installs npm@latest, and npm no longer returns an array whose [0] holds
the file list, so indexing it yields undefined.

Nothing was ever wrong with the package — every required file was present at
that tag, and the same check passes under npm 10 locally. tar -tzf reads the
artifact itself and does not depend on a JSON shape npm is free to change.
@coderabbitai

coderabbitai Bot commented Aug 7, 2026

Copy link
Copy Markdown

Warning

Review limit reached

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

Next review available in: 24 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: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 8f3f0fe2-fbe6-4c19-853e-f3c50f599b07

📥 Commits

Reviewing files that changed from the base of the PR and between 294bf96 and 3e5f622.

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

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.

@chidiwilliams
chidiwilliams merged commit 81d6875 into main Aug 7, 2026
3 checks passed
@chidiwilliams
chidiwilliams deleted the chidi/fix-pack-check branch August 7, 2026 03:19
@chidiwilliams chidiwilliams mentioned this pull request Aug 7, 2026
Merged
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