- Clone the repository
- Install dependencies with
yarn install
- Run
yarn generate
to update theBrevo.ts
file. - Commit the changes
There are automated tests that check that the generated file matches the current latest version of the API.
As the tests are dependant on the external swagger api spec they could fail on a future run with no code changes. If this happens you can run yarn generate
to update the generated file to the latest version of the API.
The repo is setup to auto publish to npm when a release is created.
Prerequisites:
Add
NPM_TOKEN
to your github secrets with your npm token. The token needs to haveRead/Write
access to the package, scope, or all packages.
- Update the version in
package.json
- Create a new release in github and publish
- A build will automatically run and publish the new version to npm