iw-auth-sdk
v0.4.5
Published
Innerworks' Authorization SDK written in Javascript and published on npm as `iw-auth-sdk`
Downloads
13
Readme
Javascript Authorization SDK
Innerworks' Authorization SDK written in Javascript and published on npm as iw-auth-sdk
Publishing
A change made to this SDK should be put in a seperate branch and a PR made to merge into the dev
branch. On approval the PR will be merged and dev
will reflect the changes. On merge to dev
a workflow will run that tags the commit with 'dev-latest'.
To then move into QA create another PR merging dev into QA, merging this PR will lead to a workflow that labels the new commit qa
.
Finally, once appropriate QA testing has occurred a similar process is used to merge into prod
, only in prod
will the workflow then publish the newest version to npm.
Using Non-Production Versions
Since non-production versions are not present in npm, they cannot be tested using npm i iw-auth-sdk
as normal. Instead, appropriate scripts should be set up in the Node.js project that use this SDK, for example:
...package.json
"scripts" : {
"build:dev" : "npm install github:InnerWorks-me/iw-auth-sdk-js#dev-latest && next build",
"build:qa" : "npm install github:InnerWorks-me/iw-auth-sdk-js#qa-latest && next build"
}
Note that you must have an SSH key set up locally with an account that has read access to this repository