@soulmachines/smwebsdk
v15.8.1
Published
The Soul Machines Web SDK can be used for presenting and interacting with Digital Heroes in a web page or front-end JavaScript application.
Downloads
1,038
Readme
@soulmachines/smwebsdk
The Soul Machines Web SDK can be used for presenting and interacting with Digital Heroes in a web page or front-end JavaScript application.
You will need access to a Soul Machines Digital Hero to use this library.
Full documentation can be found in the Soul Machines Support Portal.
Installation
npm install @soulmachines/smwebsdk
Usage
import { smwebsdk } from '@soulmachines/smwebsdk'
See the Soul Machines Support Portal for further documentation.
License
Please see the End User Licence Agreement included with the code.
Release
The web sdk is released using github actions.
Releases are stored here: https://github.com/soulmachines/smwebsdk/releases.
There are three key actions to consider during release:
- Draft release PR. On merge to main this action creates a draft PR using Google's release-please action. This identifies changes as fixes and features to update release notes, creates a github release and assigns a new semver version into package.json. As more changes are merged release-please automatically updates the PR. When the release is ready to be made, the PR can be promoted from draft, approved and merged
- Publish to Github Packages. This action runs automatically on release (triggered by release-please PR merge) and will update the package registry in github. It can also be run manually.
- Publish to npm. This is a manual run github action. Take the version number assigned by the release-please PR's merge (in package.json) and specify it as a parameter to this job: Release tag name to publish (eg. v1.0.0). Publishing to npm makes the release publicly available to customers.