Skip to content

Publish the packed tarball by path - #6

Merged
IgorDobryn merged 1 commit into
mainfrom
fix-npm-publish-path
Nov 13, 2026
Merged

IgorDobryn merged 1 commit into
mainfrom
fix-npm-publish-path

Conversation

@IgorDobryn

@IgorDobryn IgorDobryn commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Motivation

The Release workflow would fail right after the publish approval: npm reads dist-pack/<name>.tgz as GitHub shorthand (owner/repo) and tries to clone it instead of publishing the local tarball. The dry run skips the publish job, so it couldn't catch this.

Changes

  • Publish with npm publish ./dist-pack/*.tgz, which npm treats as a local file
  • The build job runs npm publish --dry-run on the tarball while a release is pending, so a bad publish argument fails before the approval. It's skipped on a dry run of an already released version, since npm 11 refuses a version the registry already has

How to test

  • Merge this, then merge the open release PR (its merge commit runs the fixed workflow): Check the tarball publishes passes in the build job and the version reaches npm

npm reads `dist-pack/<name>.tgz` as GitHub shorthand (owner/repo) and tries
to clone it; a leading `./` makes it a local file. The dry run skips the
publish job, so the build job now runs `npm publish --dry-run` on the
tarball while a release is pending. It is skipped on a dry run of an
already released version, since npm 11 refuses a version the registry
already has.
@coderabbitai

coderabbitai Bot commented Nov 12, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c687a8c5-78ef-4c07-bf68-9531a0299d3f
  • 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 thread .github/workflows/release.yml Resolved
@IgorDobryn
IgorDobryn merged commit 7bf8426 into main Nov 13, 2026
6 checks passed
@IgorDobryn
IgorDobryn deleted the fix-npm-publish-path branch November 13, 2026 07:16
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.

3 participants