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
4
votes
4 answers

gitlab npm publish not working: This command requires you to be logged in

I am new to this gitlab world. I have one private project. I am able to publish the package using command prompt. My .npmrc…
4
votes
1 answer

Getting 'forbidden' pushing a nuget package in github

Much like this thread: Publishing and Consuming GitHub Package Repository with NuGet: Unable to load the service index error I have the csproj correct, the nuget.config correct (same as in that thread, but for my username), and following the answer…
Jim
  • 804
  • 6
  • 17
4
votes
0 answers

Getting Github Packages Download Numbers through the API?

I want to be able to grab the download numbers from a Github Packages through the API. For instance, if you look on the Homebrew packages page for sqlite, you'll see there's a number to the right of the page it says "9.52m downloads". I want to be…
Maxrimus
  • 41
  • 1
4
votes
0 answers

Get latest version of github package

https://docs.github.com/en/rest/reference/packages#get-a-package-version-for-an-organization The API's listed in here does not provide the API to list the latest package version, in fact it is an array if there are multiple versions. Does anyone…
Vinaya Nayak
  • 1,083
  • 3
  • 16
  • 29
4
votes
0 answers

Get diagnostics from Github Packages backend when `dotnet nuget push` fails?

I am trying to port a legacy project to push nuget artifacts to Github Packages as a proof-of-concept, and learning on the job. The push currently fails without an explanation: C:\Users\m86194\source\repos\my-project>dotnet nuget push "**/*.nupkg"…
Thorbjørn Ravn Andersen
  • 73,784
  • 33
  • 194
  • 347
4
votes
1 answer

How Do I Set Up A Private Nuget Package Registry with Visual Studio 2019?

I am attempting to make available a .NET Framework v4.5.2 package in Visual Studio 2019, via NuGet Package Manager, and sourced from Github's private NuGet package registry system. Important Stuff I'm Using: .NET Framework 4.5.2 Github…
Ian Ray
  • 378
  • 2
  • 18
4
votes
2 answers

GitHub Actions: automatically push NuGet package

I'm trying to configure my Github repository in order to automatically have a NuGet package built and pushed to both nuget.org and github.com. So what I want is that each time a commit is made on the master branch, or another branch is merged into…
Pieterjan
  • 2,738
  • 4
  • 28
  • 55
4
votes
2 answers

Azure Pipelines Can't Work With Github Packages

Pretty simple to reproduce: - task: NuGetCommand@2 displayName: NuGet push inputs: command: 'push' packagesToPush: '$(Pipeline.Workspace)/**/*.nupkg' nuGetFeedType:…
Jeff
  • 35,755
  • 15
  • 108
  • 220
4
votes
1 answer

Github Actions - create a fast running action

I am creating a github docker container action that involves a number of dependencies python, node, pypi packages, and npm packages. In order to speed up the action I move a lot of the dependency installation from the entrypoint to the Dockerfile. …
4
votes
1 answer

How can i list all packages in a Github Package Registry repository from the command line?

Let's say that we have the Github package registry repository https://maven.pkg.github.com/someOrganization . How can I cat the list of all packages in this repo into a txt file ?
4
votes
5 answers

How to see what Maven is sending to a server during deploy?

I'm trying to use Github's new Actions CI server to deploy packages to Github's new packages feature. It's not going well. I think it's all set up correctly, but I get this error: Failed to execute goal…
ccleve
  • 15,239
  • 27
  • 91
  • 157
4
votes
1 answer

Automating the build and publish process with GitHub Actions (and GitHub Package Registry)

This is sorta Q&A, I've put my solution in the answers. I'm part of both the GitHub Actions beta and the GitHub Package Registry beta. Since I'm a very lazy person I not only automated the build process of my npm package, but I wanted also to…
Federico Grandi
  • 6,785
  • 5
  • 30
  • 50
4
votes
3 answers

How do I publish NuGet packages to GitHub Package Registry using dotnet on Mac?

The documentation is not complete and currently I cannot consume or publish package to GPR using dotnet on Mac. Any help would be useful
3
votes
2 answers

Unable to pull public image from Github Container Registry (GHCR)

I have pushed an image to Github Container Registry (GHCR) and made it public. When I try to pull it, I get an error (I've already done docker login). docker pull ghcr.io/username/reponame:master Error I receive: Error response from daemon: Head…
3
votes
2 answers

Can a github collaborator create package in Github package registry?

I have a private github repository and in that repository there are some collaborators. They can't create new packages but they can publish to existing packages created by me as I'm the creator of the repository. Is there any way that my…