GitHub Packages
Your packages,
at home with their code
With GitHub Packages, you can safely publish and consume packages within your organization or with the entire world.
$ echo $PAT | docker login ghcr.io --username phanatic --password-stdin Logged in successfully $ docker tag app ghcr.io/phanatic/app:1.0.0 $ docker push ghcr.io/phanatic/app:1.0.0 1.0.0: digest: sha256:631cb8...fc822c size: 1373
$ npm login --registry=https://npm.pkg.github.com --scope=@phanatic Successfully logged in. $ npm publish Package published
$ mvn deploy -Dregistry=https://maven.pkg.github.com/phanatic -Dtoken=$GH_TOKEN Uploaded: https://maven.pkg.github.com/phanatic/com/github/app/1.0/github_api-1.0.pom (2 KB at 1.0 KB/sec)
$ nuget source Add -Name "GitHub" -Source "https://nuget.pkg.github.com/phanatic/octokit/index.json" -UserName phanatic $ nuget pack $ nuget push "octokit.net.1.0.0.nupkg" -Source "GitHub" Your package was pushed
$ echo ":github: Bearer ${GH_TOKEN}" >> ~/.gem/credentials $ gem build github_api.gemspec $ gem push --key github --host https://rubygems.pkg.github.com/phanatic github_api-1.0.0.gem Successfully registered gem: github_api (1.0.0)
Easy publishing
Use industry and community-standard package managers with native tooling commands. Then authenticate and publish directly to GitHub.
Trusted sources
Understand and safely install package contents. Get packages directly from the community on GitHub, and use only what’s been approved for your organization.