This npm package is published here: echaloasuerte-js-sdk
We need to release a new version of the SDK everytime something changes in the backend API (i.e when something is changed in the the swagger file).
To publish a new version of the SDK, follow the steps above:
-
Install openapi-generator if you haven't done it already
brew install openapi-generator
-
Generate the SDK using the latest version of the swagger file
// Clone the repo git clone [email protected]:etcaterva/eas-js-sdk.git // Generate the sdk cd eas-js-sdk make generate-sdk
-
Push the sdk upstream
git add -A git commit -m "Update SDK" git push origin master
-
Release the new version
- Go to the releases section of this repo
- Click on Draft a new release
- Fill the tag with the appropriate version
- Publish the release! (and wait for the pipeline to finish)
From the client do:
npm i echaloasuerte-js-sdk@latest --save-dev