diff --git a/packages/abacus-react/.releaserc.json b/packages/abacus-react/.releaserc.json index ff9772c6..e33b5917 100644 --- a/packages/abacus-react/.releaserc.json +++ b/packages/abacus-react/.releaserc.json @@ -45,6 +45,15 @@ "npmPublish": true } ], + [ + "@semantic-release/npm", + { + "npmPublish": true, + "pkgRoot": ".", + "tarballDir": "dist", + "registry": "https://npm.pkg.github.com" + } + ], [ "@semantic-release/github", { diff --git a/packages/abacus-react/README.md b/packages/abacus-react/README.md index 7adfbc80..6887055b 100644 --- a/packages/abacus-react/README.md +++ b/packages/abacus-react/README.md @@ -16,6 +16,8 @@ A comprehensive React component for rendering interactive Soroban (Japanese abac ## Installation +### From npm (recommended) + ```bash npm install @soroban/abacus-react # or @@ -24,6 +26,18 @@ pnpm add @soroban/abacus-react yarn add @soroban/abacus-react ``` +### From GitHub Packages + +```bash +# Configure npm to use GitHub Packages for @soroban scope +echo "@soroban:registry=https://npm.pkg.github.com" >> .npmrc + +# Then install +npm install @soroban/abacus-react +``` + +The package is published to both npm and GitHub Packages simultaneously for redundancy and choice. + ## Quick Start @@ -404,8 +418,9 @@ BREAKING CHANGE: callback functions now receive different parameters ### Release Process 1. **Automatic**: Releases happen automatically when changes are pushed to `main` branch -2. **Manual testing**: Run `pnpm release:dry-run` to test release without publishing -3. **Version tags**: Releases are tagged as `abacus-react-v1.2.3` (separate from monorepo versions) +2. **Dual publishing**: Package is published to both npm and GitHub Packages simultaneously +3. **Manual testing**: Run `pnpm release:dry-run` to test release without publishing +4. **Version tags**: Releases are tagged as `abacus-react-v1.2.3` (separate from monorepo versions) ### Development Commands diff --git a/packages/abacus-react/package.json b/packages/abacus-react/package.json index 1f80f203..61077c55 100644 --- a/packages/abacus-react/package.json +++ b/packages/abacus-react/package.json @@ -89,13 +89,14 @@ "license": "MIT", "repository": { "type": "git", - "url": "https://github.com/soroban-flashcards/soroban-abacus-flashcards", + "url": "https://github.com/antialias/soroban-abacus-flashcards", "directory": "packages/abacus-react" }, "engines": { "node": ">=18.0.0" }, "publishConfig": { - "access": "public" + "access": "public", + "registry": "https://registry.npmjs.org" } } \ No newline at end of file