How to use GitHub as your jsrepo registry.
GitHub is currently the only supported git provider for jsrepo.
jsrepo supports GitHub so that you can just paste a link to the repo homepage and it will be handled correctly.
Because of this all of the following paths work:
To check if a ref is a tag or a branch the CLI calls octokit to check the tags.
Tags can be a great solution to ensuring remote tests and blocks stay on a consistent version.
Tags do not however work like npm packages. Tags are completely mutable meaning a malicious registry could publish over a tag with different code.
This is why it's always important to make sure you trust the owner of the registry.
When referencing GitHub as the provider you can use the github shorthand in place of https://github.com.
Example:
In the jsrepo.json:
If you are creating your own registry you may want to build the registry on a push to the main branch to make sure that the jsrepo-manifest.json is always up to date with the latest changes.
Workflow to build the manifest and create a pull request: