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
1
vote
1 answer

Can I publish a library to multiple npm registries at the same time?

I created one repository and library. And I want to publish to npm registry and github package at the same time. Do you know an easy way to do this? I am currently publishing this with a change. It would be great if this could be solved with a…
WonChul Heo
  • 242
  • 1
  • 12
1
vote
2 answers

Publish Android library as dependency privately

I have an Android library that I want to publish it as dependecy to be used privately by different collegues in our company. I amm not sure but Github Packages will make it public and any one can use it. Is there any way to do that using Gitlab or…
1
vote
2 answers

GitLab Package Registry as Maven Artifactory

I am trying to setup a GitLab project as the remote maven repository for all my other projects using GitLab Maven Package Registry. I have uploaded all dependency jar files to the package registry. All the jar files have been uploaded using maven's…
1
vote
1 answer

GitHub packages not found when restored from GitHub Actions

I have two dotnet core GitHub private repositories: Repository B publish nuget packages to GitHub packages repository (private). Repository A consumes nuget packages published by repository B from GitHub packages repository. I have access to both…
1
vote
1 answer

Can login into docker-registry but not push image (github)

So I want to use the docker registry from GitHub. I do the flowing: docker login docker.pkg.github.com --username username docker build . --tag docker.pkg.github.com/user-name/repo/IMAGENAME:snapshot docker push…
Alex
  • 521
  • 7
  • 17
1
vote
1 answer

Github Maven Packages can't be found in ORG

I'm trying to use Github packages as a maven repository. When I point directly to a repo like this : repositories { maven { url = uri("https://maven.pkg.github.com/ORG/REPO") credentials { username = 'some-user' …
Mark Davydov
  • 337
  • 4
  • 18
1
vote
1 answer

Github Package Registry how to delete a version

I have read the instructions on how to delete a version here: https://help.github.com/en/github/managing-packages-with-github-packages/deleting-a-package When I tried to use the curl, it just gives me this error: { "message": "Problems parsing…
JianYA
  • 2,750
  • 8
  • 60
  • 136
1
vote
1 answer

How to add GitHub authentication informations in the circleCI config for Package publishing?

I'm setting up the config.yml file for CircleCI in my repo in order for it to publish it as a GitHub NPM package. Before running the npm publish command, we need to authenticate on the GitHub NPM registry using Username, password (Personnal Access…
1
vote
1 answer

Github Package Registry not overwriting tag when pushing a docker image

I've pushed a docker image named com.tejas:tejas-api:dev to the github package registry. Now, when I again push the same image name (having updated code) on to the registry, it gets pushed successfully, but does not update the image. As a result,…
Tejas
  • 157
  • 2
  • 10
1
vote
1 answer

specify GitHub's Package Repository in buildspec.yml

I have an AWS CodeBuild process kicking off whenever I check code into master branch of my GitHub repo. My codebase is a dotnet core serverless application. I have a dependency on a private nuget package residing in GitHub Package Repository. My…
Tom Schreck
  • 5,177
  • 12
  • 68
  • 122
1
vote
1 answer

GitHub Package Registry NPM 400 Put Error

Sometimes it's possible to get an error like the following when trying to publish your NPM package to GitHub Package Registry using npm publish: npm ERR! code E400 npm ERR! 400 Bad Request - PUT https://npm.pkg.github.com/@myorg%2fmypackage -…
Charlie Fish
  • 18,491
  • 19
  • 86
  • 179
1
vote
2 answers

Exception while trying to deploy Maven build JAR to github package registry

I am trying to deploy the Maven build JAR to Github Package Registry. I am getting exception when I execute mvn deploy command. I am using a simple Maven project which I want to create a component JAR and store in Github Package Registry. The build…
1
vote
2 answers

Tying Docker Image to correct Github commit in Github Package Registry

When publishing a package to the Github Package Registry with docker push, it appears that the package is linked to the most recent commit on the master branch. However, I am currently building my packages on a different branch or off of a specific…
Sebastian Mendez
  • 2,859
  • 14
  • 25
0
votes
1 answer

Publishing an NPM pkg to Github Packages fails with EPUBLISHCONFLICT and version @undefined but it still ends up there with the right version

I am publishing an NPM package to a private Github Packages in a private repo. I am getting Error: Cannot publish @user/libs@undefined over existing version. The right version is in the package.json which does not exist in the upstream. But the…
0
votes
0 answers

Java Gradle Gitub packages unable to update and publish individual modules without updating all the versions or have same version for all modules

I want to create a multi module project where each module is an individual library with individual version. The problem is that when I update one module/subproject I need to increase the version of every other module/subproject because github throws…