📦 A Monolithic repository for Userback.io npm packages
After cloning the repo, you can install all dependencies and build the widgets with:
yarn && yarn build
After which you can run an example package using yarn start:widget
or yarn start:react
.
To provide your api token, create a .env
file containing your Userback api key like the following:
VITE_UB_TOKEN=XXXxxxXXX
Test coverage is mainly achieved through playwright and docker compose. In order to run the e2e test suite run the following:
yarn test:docker
Refer to each of the packages listed above for framework specific documentation and examples. For more information about available configuration settings and and functions available, see our Javascript API
- Checkout
develop
against the commit you plan to release. - Build a production build with
yarn build
. - Ensure CI is green and Local testing are successful (eg:
yarn test
). - Update all versions with
yarn version:all (major/minor/patch)
. git commit -m "vX.X.X"
andgit tag vX.X.X
where X.X.X is your new version.yarn publish
to publish all packages to the npm repo.git push && git push --tags
to push the release to github.- Create a github release 🎉