Skip to content

Latest commit

 

History

History
73 lines (51 loc) · 1.75 KB

release-pex-models.md

File metadata and controls

73 lines (51 loc) · 1.75 KB

Releasing type-script

Step A : Update values

Update

  • this README.md
  • SDK's README.md located at template/models-typescript/README.md
  • release-notes.md

Bump up the version of SDK in pom.xml

<npmVersion>M.m.p</npmVersion>

Update the version in package.json template/models-typescript/package.json.

"version": "M.n.p",

Since the package.json file is being copied from the template directory instead of being created, the POM's version is not effective. Keeping it aligned would still be beneficial though.

Step B : Recreate the SDK

NOTE: The following changes need to be made manually currently in the Typescript packages. A template fix will follow shortly

vc+sd-jwt (currently encoded as vcsd_jwt). For TS this should be vcsd_jwt -> ['vc+sd-jwt']

sd-jwt_alg_values (currently encoded as sd_jwt_alg_values; this should be sd_jwt_alg_values -> ['sd-jwt_alg_values']

kb-jwt_alg_values (currently encoded as kb_jwt_alg_values) kb_jwt_alg_values -> ['kb-jwt_alg_values']

mvn clean
mvn install -P models-typescript
cd target/sdks/models/typescript
Fix model/format.ts to include the line  ['vc+sd-jwt']?: SdJwtObject; as well as other replacements mentioned above
yarn install
yarn build

Step C : Publish

If not already logged in at npmjs.org with a token

yarn login

npm login may ask a few questions.

yarn publish --access public

Step D : Check

Check on npmjs.com

Install the module following the included README.md.

Releasing java

If you have the correct settings in your local workspace, you can easily publish a new version on Sphereon repository (sphereon-opensource-snapshots) if you do, you can create and upload a new version with running:

mvn clean deploy -P java