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
0
votes
1 answer

AKS cannot pull image from GitHub Private registry but Minikube could pull the same one

I am trying to build an application, but when I try to create a Deployment, the container failed at creation stage with the error: "docker.pkg.github.com/XXXXX/XXXXXX/XXXXXXXXXXXX:latest": rpc error: code = NotFound desc = failed to pull and…
pyy
  • 915
  • 3
  • 9
  • 25
0
votes
1 answer

Kotlin DSL "from" keyword not found

I have been trying to follow GitHub tutorial to publish a package. The problem is that I get the following error when trying to run Gradle: Script compilation error: Line 49: from(components["java"]) ^ Unresolved…
0
votes
1 answer

How do you change a GitHub Package Registry description on GitHub?

When you publish a Package on GitHub Package Registry, you can optionally create a description of the Package. Unfortunately, I wrote a description that no longer adequately describes the code in the repo. How do I change the description? There is…
Bala.Raj
  • 1,011
  • 9
  • 18
0
votes
1 answer

Add Github Package to maven

A few days ago I created a Github Package for a java library. Now I wanted to add the dependency from Github Packages to another Maven Project, but I get the following error: Could not transfer artifact io.geilehner:storyblok-java-sdk:pom:1.0.1…
Markus G.
  • 1,620
  • 2
  • 25
  • 49
0
votes
1 answer

Configure custom container image LABEL using Cloud Native Build Packs/Paketo.io with spring-boot-maven-plugin for GitHub Container Registry link

I created a simple Spring Boot application using https://start.spring.io/. Now I want to use Paketo.io / Cloud Native Build Pack support of the spring-boot-maven-plugin to build a container image and push it to the GitHub Container Registry using…
0
votes
1 answer

Cannot consume private NPM package hosted on GPR

I have a private repo that, using Github Actions workflow, I have published as a private npm package on Github Package Registry. I want to consume this package in the scope of another private project of mine. But there is an issue. Upon importing…
0
votes
1 answer

npm publish ignoring files in dist directory when trying to publish to github package registry

Here is a strange one for you, when I try to publish a package with npm to github on my new MacBook Pro (it is an M1, so it might be a bit of weirdness) it just it ignores all the files in the "dist" directory except for the package.json file. It…
0
votes
0 answers

GitHub Actions with GitHUb Packages: Maven build with Artifact from different repository

I would like to use GitHub Actions to build and publish a Java application with Maven. The simple constellation is already working. A repository (lets Call it repo A) in GitHub including GitHub Actions: build the Java application push it to GitHub…
LStrike
  • 1,598
  • 4
  • 26
  • 58
0
votes
2 answers

Push multiple nupkg files to Github Packages using powershell?

We are consolidating on Github, and I am looking into how to get one of our C# projects to build using Github Actions, and push the generated nuget packages to Github Packages. My test project generates about 15 packages. It appears that the…
0
votes
0 answers

Organisation-Wide repositories with GitHub Packages & Maven

If I have a GitHub organisation ACME, and we have two repositories Repository1 and Repository2 which both publish packages to GitHub packages via Maven, is there a way to have both packages be added in a single Maven repository, as an organisation…
PhilGibson
  • 78
  • 5
0
votes
1 answer

What is the standard way to publish a standalone Android library to GitHub packages

I want to create an Android library and publish it in GitHub packages so that I can use it in multiple projects. When I create a project I have not choice to create an individual library and all the examples I have seen involve adding an Android…
lcj
  • 1,355
  • 16
  • 37
0
votes
2 answers

Github action cannot download artifact from Github package repository

I have two different repositories. One for the library an another for the application that needs the library from the other repository. When I run the Github action of the second repository I got a Authentication failed for…
JimmyD
  • 2,629
  • 4
  • 29
  • 58
0
votes
1 answer

Publish .NET Library to Github packages with a name and the version

I have created a .NET library C# project and published as a nuget package to my Github packages. The published package doesn't show the correct naming and version in Assets. I created a NuGet.config in the project folder. Then followed dotnet pack…
Aruna
  • 1,962
  • 4
  • 25
  • 50
0
votes
1 answer

How to deploy docker image from Github Package Registry to Azure Web Apps

I have Github Package Registry about Docker Image. I want to deploy it to Azure Web Apps. I try the setup like this, Server URL: https://docker.pkg.github.com Full Image Name & Tag: berviantoleo/my-telegram-bot/my-telegram-bot:latest I'm not fill…
0
votes
1 answer

Can't push a package to Github

I'm trying setup Github Packages for a NPM project but I'm running into some issues.. I have a repo under a specific org: my-orgname/my-repo-name This repo is private The code in themy-orgname/my-repo-name repo contains a NPM module. package.json…
GN.
  • 8,672
  • 10
  • 61
  • 126