Questions tagged [github-package-registry]

GitHub Packages is a software package hosting service that allows you to host your software packages privately or publicly and use packages as dependencies in your projects. Questions regarding help on the GitHub Package Registry should use this tag.

About GitHub Packages

From the documentation about GitHub Packages:

GitHub Packages is a package hosting service, fully integrated with GitHub. GitHub Packages combines your source code and packages in one place to provide integrated permissions management and billing, so you can centralize your software development on GitHub.

You can publish packages in a public repository (public packages) to share with all of GitHub, or in a private repository (private packages) to share with collaborators or an organization. You can use GitHub roles and teams to limit who can install or publish each package, as packages inherit the permissions of the repository. Anyone with read permissions for a repository can install a package as a dependency in a project, and anyone with write permissions can publish a new package version.

You can host multiple packages in one repository and see more information about each package by viewing the package's README, download statistics, version history, and more.

You can integrate GitHub Packages with GitHub APIs, GitHub Actions, and webhooks to create an end-to-end DevOps workflow that includes your code, CI, and deployment solutions.

Resources

229 questions
3
votes
1 answer

How to host private NPM packages for free on GitHub based on a legacy private repo? Is it possible to do it without manual editions to package.json?

My organization has a private repo on GitHub. Basically, a paid extension of Sheetjs which works as a dependency for our web app project. The task is to create a private NPM package for it. Hopefully, it would make the build process of the…
Pedro Delfino
  • 2,421
  • 1
  • 15
  • 30
3
votes
1 answer

Specifying which README is displayed under a github package connected to a repository

I built a docker image and published it to github package registry under an organization and linked it to a specific repository. However, I would like to specify a different README file to be displayed in the package registry under the image I…
3
votes
2 answers

How to access github package registry from one repo to other under same organization?

I'm working under organization Org which has two different repositories repo-1 and repo-2. I had uploaded some 50 odd Maven dependencies to GitHub Packages registry of repo-1 and now we're migrating to repo-2. pom.xml and all the GitHub Actions…
Sid
  • 145
  • 1
  • 11
3
votes
0 answers

401 Unauthorized while using GitHub NPM registry

I am trying to use npm.pkg.github.com to host a NPM package. I followed this guide https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-npm-registry When I try to run npm login ... (see bellow) I got the error…
Rodrigo
  • 135
  • 4
  • 45
  • 107
3
votes
1 answer

How to delete old snapshot artifacts from GitHub packages

I have a GitHub worflow which builds and deploys a snapshot version of a library as a GitHub package, e.g., mycompany.mytool.1.0.0-SNAPSHOT.jar. Whenever I make a new build and deploy, a new asset is created, like, e.g.,…
mipa
  • 10,369
  • 2
  • 16
  • 35
3
votes
0 answers

Configure description for package published to the GitHub Packages Gradle registry

When publishing a package to the GitHub Packages Gradle registry, the resulting package's description is empty. Is it possible to set the package description via config? I have the following (abridged) configuration in build.gradle.kts, I was…
j4ckofalltrades
  • 572
  • 1
  • 5
  • 16
3
votes
1 answer

Netlify and yarn not finding Github package

I'm building a site with yarn and hosting it on Netlify. I want to integrate another repo as a package, but I'd rather not put that package on the npm registry because it's very limited use. I hosted the package publicly via GitHub here and added it…
Ann Kilzer
  • 1,266
  • 3
  • 16
  • 39
3
votes
1 answer

Github: Building a docker image in a repository with multiple Dockerfile

I have a repository that has multiple directories each containing a python script, a requirements.txt, and a Dockerfile. I want to use Github actions to build an image on merge to the main branch and push this image to Github packages. Each…
3
votes
1 answer

Github organization using secrets, actions and PAT's

I've created a GitHub organization (and also pay for GitHub enterprise because nothing worked and I became a bit desperate). Note, I'm completely new to Github organization stuff, be kind lol. What's wrong? I'm trying to push local changes to…
3
votes
2 answers

What is the difference between GitHub Container Registry and Github Packages for Docker?

GitHub offers two options for storing container images as I understand it: Container Registry and Packages, but I think the difference is not clear. In a blog post, they say "With GitHub Actions, publishing to GitHub Container Registry is easy." but…
Emre
  • 933
  • 15
  • 27
3
votes
3 answers

Switching from NPM to GitHub Packages

I have a NPM package with a small user base, yesterday I created a new version and wanted to release it. I thought that I might as well make use of the new GitHub Packages and so I setup everything as GitHub suggested and released! Now the problem…
Schotsl
  • 187
  • 1
  • 8
  • 29
3
votes
1 answer

How can I push Nuget Package to GitHub Packages?

I'm trying to push simple .Net Core Class Library to GitHub Packages. I've read all of documentation in…
Kenan Nur
  • 383
  • 6
  • 17
3
votes
0 answers

How can I add a GitHub Packages resolver to an Ammonite script?

Does anyone know how I can add a GitHub Packages resolver to an Ammonite script? I'm quite used to using GitHub Packages with sbt, but we use the sbt-github-packages plugin, which makes it very easy to add a GitHub Packages resolver to a build.sbt…
Douglas
  • 2,555
  • 3
  • 24
  • 30
3
votes
1 answer

npm package published via github not appearing in npm module search

I published a package via Github's package manager, and it seemed to work. It appears on the repo's web page and on my profile page. When I run npm install @franklinharvey/time-remaining@1.0.0 locally it works, but when I try it in a new…
Frank
  • 735
  • 1
  • 12
  • 33
3
votes
1 answer

Yarn can't authenticate with Github Packages - but npm can

What do I need to do to configure yarn to authenticate with Github Packages? I've got a hello-world npm package that I'm trying to publish privately to github. I want to be able to use yarn instead of npm, but for some reason yarn can't…
doub1ejack
  • 10,627
  • 20
  • 66
  • 125