With yarn add @kleros/ui-components-library or npm install @kleros/ui-components-library
Wwhere you destructure lightTheme or darkTheme (or both) in your theme object to provide the correct colors to the components. (example).
With styled-components ThemeProvider (example).
- Bump the version in
package.json - Run a clean build:
yarn clean && yarn build - Commit the change to git:
git add -u ; git commit -m "chore: release" - Tag this version:
version=v$(cat package.json | jq -r .version) && git tag -m $version $version - Push both commit and tag:
git push && git push --tags
- Export your NPM token:
export YARN_NPM_AUTH_TOKEN=<npm_xxxxxxxxxxxx> - Publish:
yarn publish
- Login
npm login --registry https://npm.pkg.github.com --auth-type legacy
> Username: YOUR_GITHUB_USERNAME
> Password: YOUR_GITHUB_PERSONAL_ACCESS_TOKEN`- Publish:
npm publish --registry https://npm.pkg.github.com