You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Switch Pro packages to public distribution (#1901)
## Summary
This PR implements the switch from GitHub Packages to public
distribution for React on Rails Pro packages and gem.
### Changes
**1. Node Renderer NPM Package (`react_on_rails_pro/package.json`)**
- Removed `publishConfig` section to publish to npmjs.org instead of
GitHub Packages
- Updated repository URL to reflect monorepo location
**2. Release Script (`rakelib/release.rake`)**
- Updated node-renderer publishing logic (remove GitHub Packages
messaging, add npmjs.org OTP prompt)
- Updated Pro gem publishing: removed `--key github --host` arguments to
publish to RubyGems.org
- Updated documentation header to list all packages as PUBLIC
- Updated success message to reflect unified public distribution
**3. Documentation Updates**
- Removed all GitHub PAT authentication instructions
- Added license token security warning
- Updated all package name references to unscoped version
- Simplified installation flow
### Distribution Strategy
**Before:**
- Pro packages published to GitHub Packages (private)
- Customers need GitHub PAT + JWT license token
- Manual PAT generation by Justin for each customer
**After:**
- All packages published to public registries (npmjs.org + RubyGems.org)
- Customers only need JWT license token
- Runtime enforcement via JWT validation (unchanged)
- Frictionless installation with `gem install` and `npm install`
### Breaking Change
⚠️ Existing customers using GitHub Packages will need to update their
`.npmrc` configuration after this release. Justin will communicate
migration steps directly to customers.
### Security
Runtime enforcement remains completely unchanged:
- JWT license validation at Rails startup (Ruby side)
- JWT license validation at Node renderer startup (Node side)
- Grace period system still in place
- Attribution system still in place
### Testing Plan
- [ ] Dry run: `rake release[16.2.0,true]`
- [ ] Verdaccio test: `rake release[16.2.0-test.1,false,verdaccio]`
- [ ] Verify packages publish successfully to public registries
- [ ] Test installation without GitHub credentials
- [ ] Test runtime enforcement still works
🤖 Generated with [Claude Code](https://claude.com/claude-code)
<!-- Reviewable:start -->
- - -
This change is [<img src="https://reviewable.io/review_button.svg"
height="34" align="absmiddle"
alt="Reviewable"/>](https://reviewable.io/reviews/shakacode/react_on_rails/1901)
<!-- Reviewable:end -->
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Chores**
* Publishing consolidated: packages now published publicly (npmjs.org &
RubyGems.org); private registry references removed, publication
messaging unified, and package names simplified to unscoped forms.
OTP/publish prompts and final release summaries updated.
* **Documentation**
* Install, release, and node-renderer docs revised for public publishing
and license-based runtime auth: simplified release commands, updated
install/import examples, startup/config guidance, and
error/tracing/integration instructions.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: Claude <[email protected]>
0 commit comments