To make the digital-brain-backend installable by Polity surfaces (Journey, Polity News, etc.), publish it as a private npm package through GitHub Packages.
- Configure
package.json with "name": "@soulpolity/digital-brain-backend" and "publishConfig": { "registry": "https://npm.pkg.github.com" }.
- Add GitHub Actions workflow to publish on tag push.
- Configure each surface's
package.json to resolve @soulpolity/* from the GitHub Packages registry.
Benefit: surfaces install the backend via npm install rather than copying code.
To make the digital-brain-backend installable by Polity surfaces (Journey, Polity News, etc.), publish it as a private npm package through GitHub Packages.
package.jsonwith"name": "@soulpolity/digital-brain-backend"and"publishConfig": { "registry": "https://npm.pkg.github.com" }.package.jsonto resolve@soulpolity/*from the GitHub Packages registry.Benefit: surfaces install the backend via
npm installrather than copying code.