We publish the npm package manually. In the future we want to release and publish npm package using GitHub Actions.
Make sure you have an npm account and you are in the orangekit
organization to
publish npm package.
To publish OrangeKit React package follow these steps:
- Checkout to
main
branch. - Make sure the version in the
package.json
file is correct. The version on themain
branch should point to the next version. For example, if the latest version is1.0.0-beta.10
, the version onmain
branch should be1.0.0-beta.11
. - Update version of the
@orangekit/sdk
dependency to the latest version. - Remove
dist
andnode_modules
directories. - Run
pnpm install
. - Run
pnpm build
. - If you need to log in to npm - run
npm adduser
- Run
npm publish --access public
and follow the steps in terminal.
After the successful release bump the version in package.json
file, set the
@orangekit/sdk
dependency to workspace:*
and open a PR.