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:
-
Setup the repo
// Clone the repo git clone git@github.com:etcaterva/eas-js-sdk.git // Generate the sdk cd eas-js-sdk nvm use npm install -
Generate the SDK using the latest version of the swagger file
npm run build // You can also build the SDK from a local swagger file npm run build-from-local -
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