feat: add GitHub Packages registry to benchmarks#71
Merged
darcyclarke merged 1 commit intovltpkg:mainfrom Mar 11, 2026
Merged
Conversation
Add GitHub Packages (npm.pkg.github.com) as a fifth registry in the
benchmark suite alongside npm, vlt, AWS CodeArtifact, and Cloudsmith.
Backend:
- Add GitHub registry config to scripts/registry/common.sh
- GH_REGISTRY env var provides the URL (without protocol)
- GH_AUTH_TOKEN env var provides the auth token
- Registry URL is prefixed with 'https:' for npm config
- Add GitHub to hyperfine commands in registry-clean.sh and
registry-lockfile.sh
- Add GitHub to REGISTRY_COLORS in generate-chart.js (#6336b8)
- Add GH_REGISTRY and GH_AUTH_TOKEN secrets to CI workflow
- Update bench CLI: AVAILABLE_REGISTRIES, usage text, examples
Frontend:
- Add 'github' to PackageManager union type and all data interfaces
- Add GitHub icon component (Octicons mark-github logo)
- GitHub icon renders white in dark mode (same pattern as vlt)
- Add GitHub to icon map, display names ('GitHub' / 'npm.pkg.github.com')
- Add to history data package managers list
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add GitHub Packages (
npm.pkg.github.com) as a fifth registry in the benchmark suite alongside npm, vlt, AWS CodeArtifact, and Cloudsmith.Backend
scripts/registry/common.shGH_REGISTRYenv var provides the URL (without protocol, e.g.//npm.pkg.github.com/...)GH_AUTH_TOKENenv var provides the auth tokenhttps:for npm config.npmrckeyregistry-clean.shandregistry-lockfile.shREGISTRY_COLORSingenerate-chart.js(#6336b8)GH_REGISTRYandGH_AUTH_TOKENsecrets to CI workflowAVAILABLE_REGISTRIES, usage text, examplesFrontend
'github'toPackageManagerunion type and all data interfaces (PackageManagerData,PackageManagerVersions,PackageCountData)github → Github'GitHub'(general) /'npm.pkg.github.com'(registry variation)Required secrets
The following secrets need to be configured in the repository:
GH_REGISTRY— GitHub Packages npm registry URL (without protocol prefix)GH_AUTH_TOKEN— GitHub Packages auth token