From https://dev.to/alexeagleson/how-to-create-and-publish-a-react-component-library-2oe
run with yarn storybook
run with yarn jest
or yarn jest-watchall
to watch for changes
yarn jest
yarn rollup
yarn publish
- push changes
-
NEXT: auto publish/release with testing before release
- Setup Auth tokens in Travis CI so it can update the GH repo and npm package
-
Thee published app does not have all the code
- We need to run
yarn rollup
first but it's not working ATM
- We need to run
-
I published it to npm.pkg.github.com but let's publish it to registry.npmjs.org instead
-
Automate testing through Jenkins
-
Add code coverage
-
Add automatic build version updates (semver?)
-
Ensure storybook is available after builds
-
Automatic npm releases
-
Push protect
main
branch