- Make sure you have a GitHub Personal Access Token with
write:packagespermission - Configure npm to authenticate with GitHub Packages
Create or update your ~/.npmrc file:
@oroszgy:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=YOUR_GITHUB_TOKEN
npm login --scope=@oroszgy --registry=https://npm.pkg.github.comgit add .
git commit -m "feat: package chat component for npm distribution"
git push origin maingit tag v1.0.0
git push origin v1.0.0cd ui
npm publishVisit: https://github.com/oroszgy/agui-deepchat-integration/packages
The repository is already configured with a GitHub Actions workflow (.github/workflows/publish.yml) that will automatically publish the package when you:
- Create a new release on GitHub, OR
- Push a git tag starting with 'v'
To trigger automatic publishing:
git tag v1.0.1
git push origin v1.0.1Once published, other projects can install and use your component:
npm install @oroszgy/ag-ui-deepchat-vueThe published package includes:
- CommonJS build (
dist/index.js) - ES Module build (
dist/index.esm.js) - TypeScript declarations (
dist/index.d.ts) - Complete source code and documentation
To publish a new version:
- Update the version in
package.json - Run
npm run buildto rebuild - Run
npm publishor create a new git tag for automatic publishing