Here is the documentation on how to release a new version of either the messaging server, the webchat, or any of its packages.
Note: we use semantic versioning for all the versions mentioned below.
To release a new version of the messaging server, follow these steps:
- Bump the version of the root and packages/server
package.json
to the same version. - Push those changes to master
- Manually trigger action named
Create Release Pull Request
. This PR will generate a Pull Request - Review, approve and merge the newly created PR.
- That's it, the new version of messaging is published!
The webchat is automatically deployed on the Cloud Staging environment when a new commit is pushed on master. To deploy a new version in production, you will need to manually trigger the Upload Webchat Production
action.
To publish a new version of any of the different packages we have (e.g. Components, Client, etc.), follow these steps:
Note: These steps requires you to have write access on the @botpress NPM org
- Make sure you are logged into NPM with Yarn. Run
yarn npm login --scope botpress
if not. - In a terminal, go to the package you want to publish a new version of.
- Run
yarn version <patch|minor|major>
to bump the version of the package. Note that this step is the easiest and most efficient way to bump the package and it's reference on dependent packages. E.g. if you runyarn version patch
on the components package, it will also change the version of the dependency on the webchat as this package depends on components. - Now that you are ready to publish the package, run
yarn npm publish --access public
. - Make sure to commit your changes and push them on GitHub.
- You will receive a confirmation that the new version was published on your Email. You can also validate that this is the case by searching the package name on NPM.