Repository navigation
Fix the npm release build so 1.1.0 can be published - #66
Merged
Merged
Conversation
The 1.1.0 release tagged v1.1.0 and published the GitHub release, then failed in "Pack package": npm pack --pack-destination /tmp/pack does not create the directory (ENOENT). This was the first run since the build and publish jobs were split, so 1.1.0 never reached npm. - Create /tmp/pack before npm pack. - Make re-runs finish an interrupted release instead of failing with "Tag already exists": reuse an existing vX.Y.Z tag when its VERSION file matches, skip the GitHub release if it is already published, build the package from the tag, and skip npm publish if that version is already on npm. - Only release from main, including manual runs (as CodeRabbit raised on AOSSIE-Org/ThruBox-Server#67). After this merges, running Version Release on main publishes 1.1.0 to npm from the v1.1.0 tag without re-tagging.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 20 minutes. View limit details
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. Comment |
Contributor
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.
Addressed Issues:
No separate issue. This fixes the failed 1.1.0 release: Version Release run 40285482979.
Screenshots/Recordings:
Simulated locally against the real
v1.1.0tag:Additional Notes:
What failed: merging #65 tagged
v1.1.0and published the GitHub release. Thebuildjob then failed in Pack package, becausenpm pack --pack-destination /tmp/packdoes not create the directory (ENOENT).publishwas skipped, so 1.1.0 is not on npm. A plain re-run can't fix this: it uses the same workflow file, and a new run would stop at "Tag v1.1.0 already exists".Changes to
version-release.yml:mkdir -p /tmp/packbeforenpm pack.vX.Y.Ztag is reused, but only if itsVERSIONfile matches.npm publishis skipped if that version is already on npm.main, including manual runs. CodeRabbit raised this on Fix rate-limit bypass, add mailbox cursor, and release 1.0.0 ThruBox-Server#67.After merging: run Actions → Version Release → Run workflow on
main. It reusesv1.1.0, skips the GitHub release, builds from the tag and publishes@aossie-org/thrubox-client@1.1.0.npm publishwithE404 Not Found - PUT, which is how npm reports that the workflow isn't authorised to publish. On npmjs.com, under@aossie-org/thrubox-client→ Settings → Trusted Publisher, there must be a GitHub Actions publisher forAOSSIE-Org/ThruBox-Clientwith workflow fileversion-release.yml.AI usage: Claude Code (Claude Opus 5.5) helped diagnose the failure and write this fix. I reviewed it and ran the simulation above locally.
Checklist
We encourage contributors to use AI tools responsibly when creating Pull Requests. While AI can be a valuable aid, it is essential to ensure that your contributions meet the task requirements, build successfully, include relevant tests, and pass all linters. Submissions that do not meet these standards may be closed without warning to maintain the quality and integrity of the project. Please take the time to understand the changes you are proposing and their impact.