- The most recent and up-to-date VCs schemas are available in the polygon-id folder.
- Schemas with uploaded jsonld to IPFS are available in the ipfs folder.
In order to test new vc-schemas on branch new-branch:
- Set the version in the json schema file. -- it should probably be different than the existing to keep things super clear, though it is not necessary. The scripts will always pick the most latest import of a given type/version combination.
- Use the github action deploy-schemas-from-branch in vc-schemas repository. Click the action, then click "Run workflow". Most of the time you can use workflow from
development
and the polygon issuer asdev
. Change the branch name to yournew-branch
. After this runs, a new set of schemas should appear in the issuer node. It will have a time-stamped version. - The schema version needs to be changed in
/packages/libs/schemas/scripts/schema_version.txt
file to allow the scripts to identify the active schema. Use the version that you have just used in the action script - Use
pnpm run update-schemas
in the root of the monorepo to update references to schemas throughout. This same should work also at the root of the schemas package. - Run tests for issuer:
pnpm test:unit --filter @nexeraprotocol/vc-issuer-polygon-id
The following should not be necessary at this time, but good maybe to remember how we used to do this without the github action.
- In json, modify the jsonld url to point to the branch url (ex: "jsonLdContext": "https://raw.githubusercontent.com/NexeraProtocol/vc-schemas/new-branch/polygon-id/id3/id3.jsonld" )
- Import credential at https://amoy-issuer-node-ui-dev.nexera.id/schemas.