This monorepo contains reusable React components for United Nations World Data Forum websites. It contains the following packages:
- @undataforum/components: licensed under the MIT license.
- @undataforum/tokens: requires users to sign a waiver of liability.
Check the README files in each package for more details.
Publishing NPM packages
NPM packages are published to the GitHub Package Registry and no longer to https://www.npmjs.com/. You can explore packages at https://github.com/UNDataForum/components/packages.
In order to publish packages to the GitHub package registry, you need to configure the following GitHub tokens:
- A token with
public_repopermission assigned to environment variable
~/.bashrc. This allows Lerna to add version tags when publishing a package.
- A token with permissions
write:packages. This token needs to be added to
~/.npmrcas described here.
Then you can run
npx lerna publish
to have Lerna publish all packages.