Skip to content

fix: close #22#23

Open
reaatech wants to merge 1 commit into
mainfrom
issue/ci-failing-on-main-release-22
Open

fix: close #22#23
reaatech wants to merge 1 commit into
mainfrom
issue/ci-failing-on-main-release-22

Conversation

@reaatech
Copy link
Copy Markdown
Owner

Summary

Summary: The release script in package.json:20 previously wrote @reaatech:registry=https://npm.pkg.github.com to .npmrc, but npm's @scope:registry syntax only controls where packages are installed from, not where they are published to. So changeset publish used the default https://registry.npmjs.org, where @reaatech/* packages don't exist, causing a 404. The fix changes the generated .npmrc to use the unscoped registry=https://npm.pkg.github.com/ (plus the auth token), which applies to both install and publish, redirecting all publish operations to GitHub Packages.

Closes #22

**Summary:** The `release` script in `package.json:20` previously wrote `@reaatech:registry=https://npm.pkg.github.com` to `.npmrc`, but npm's `@scope:registry` syntax only controls where packages are **installed** from, not where they are **published** to. So `changeset publish` used the default `https://registry.npmjs.org`, where `@reaatech/*` packages don't exist, causing a 404. The fix changes the generated `.npmrc` to use the unscoped `registry=https://npm.pkg.github.com/` (plus the auth token), which applies to both install and publish, redirecting all publish operations to GitHub Packages.
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.

CI failing on main: Release

1 participant