Skip to content

Fix the npm release build so 1.1.0 can be published - #66

Merged
Atharva0506 merged 1 commit into
AOSSIE-Org:mainfrom
Atharva0506:fix/release-pack-dir
Oct 26, 2026
Merged

Atharva0506 merged 1 commit into
AOSSIE-Org:mainfrom
Atharva0506:fix/release-pack-dir

Conversation

@Atharva0506

Copy link
Copy Markdown
Member

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.0 tag:

tag VERSION file: [1.1.0]                 -> existing tag is reused
build from v1.1.0: 30 tests pass, DTS build ok
mkdir -p + npm pack -> aossie-org-thrubox-client-1.1.0.tgz
1.1.0 -> published=false (publish)        1.0.2 -> published=true (skip)
shipped types: has seq, no delete()

Additional Notes:

What failed: merging #65 tagged v1.1.0 and published the GitHub release. The build job then failed in Pack package, because npm pack --pack-destination /tmp/pack does not create the directory (ENOENT). publish was 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/pack before npm pack.
  • Re-runs can finish an interrupted release:
    • An existing vX.Y.Z tag is reused, but only if its VERSION file matches.
    • The GitHub release step is skipped if the release is already published.
    • The package is built from the tag, so what reaches npm is exactly the released code.
    • npm publish is skipped if that version is already on npm.
  • The release job only runs on 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 reuses v1.1.0, skips the GitHub release, builds from the tag and publishes @aossie-org/thrubox-client@1.1.0.

⚠️ npm Trusted Publishing must be configured. Every earlier release run (August) failed at npm publish with E404 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 for AOSSIE-Org/ThruBox-Client with workflow file version-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

  • My PR addresses a single issue
  • My code follows the project's code style and conventions
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings or errors
  • I have joined the Discord server and I will share a link to this PR with the project maintainers there
  • I have read the Contributing Guidelines

⚠️ AI Notice - Important!

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.

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.
@coderabbitai

coderabbitai Bot commented Oct 26, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
Commits

Reviewing files that changed from the base of the PR and between a7c3eb4 and 00a4f5e.

Files selected for processing: 1
  • .github/workflows/version-release.yml
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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 ci-cd CI/CD pipeline changes configuration Configuration file changes dependencies Dependency file changes documentation Changes to documentation files github-actions GitHub Actions workflow changes javascript JavaScript/TypeScript code changes needs-review repeat-contributor PR from an external contributor who already had PRs merged size/XL Extra large PR (>500 lines changed) tests Test file changes size/M Medium PR (51-200 lines changed) and removed documentation Changes to documentation files javascript JavaScript/TypeScript code changes dependencies Dependency file changes tests Test file changes size/XL Extra large PR (>500 lines changed) labels Oct 26, 2026
@github-actions

Copy link
Copy Markdown
Contributor
Messages
📖

⚠️ PR Template Check

These are non-blocking, but please fix:

  • No issue linked. Consider adding Fixes #<number> (e.g. Fixes #42) under the Addressed Issues section.

Generated by 🚫 dangerJS against 00a4f5e

@Atharva0506
Atharva0506 merged commit fb9f3ca into AOSSIE-Org:main Oct 26, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-cd CI/CD pipeline changes configuration Configuration file changes github-actions GitHub Actions workflow changes needs-review repeat-contributor PR from an external contributor who already had PRs merged size/M Medium PR (51-200 lines changed)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant