Shared Components between client and admin portal
The Library is published to NPM on the github build.
Deploying
- When the code is checked into Github it will publish it automatically if the package.json version is bumped.
Manual Deploy
Manually deploying is faster then committing the code as it doesn't need to create a ful build.
# Must build the Storybook dist folder before manually publishing
> npm run build
# Edit the package.json file and up the version.
> npm version patch --force
# Login if not already logged in
> npm login
# Publish your new library
> npm publish
# Update the library in other projects by running the following
> npm install pcm-shared-components@latest
# Or run the following to do it all in one go!
sh ./publish.sh