mirror of
https://github.com/james-m-jordan/morphik-core.git
synced 2025-05-09 19:32:38 +00:00
1.5 KiB
1.5 KiB
Publishing the @morphik/ui Package
This document provides instructions for publishing the @morphik/ui package to npm.
Prerequisites
- You must have an npm account
- You must be added as a contributor to the @morphik organization
- You must be logged in to npm via the CLI (
npm login
)
Publishing Steps
-
Ensure all changes are committed to the repository
-
Update the version in package.json (follow semantic versioning)
npm version patch # For bug fixes npm version minor # For new features npm version major # For breaking changes
-
Build the package
npm run build:package
-
Run a dry-run to check the package contents
npm pack --dry-run
-
Publish the package
npm publish --access public
-
Create a git tag for the release
git tag v$(node -p "require('./package.json').version") git push origin v$(node -p "require('./package.json').version")
Installing for Local Development
If you want to test the package locally before publishing, you can use npm link:
-
In the ui-component directory:
npm link
-
In your project that uses the package:
npm link @morphik/ui
Alternatively, you can install from a local directory:
npm install /path/to/morphik-core/ui-component
Or from a GitHub repository:
npm install github:morphik-org/morphik-core#subdirectory=ui-component