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
3 answers

How can I use GPR and nuget.org sources in my dotnet project via GitHub Actions?

I am trying to build my dotnet class library project via GitHub Actions. My project uses a private NuGet package stored on the GPR in addition to some standard nuget.org packages. I have not been able to get a successful build like I have on my…
Connor Low
  • 5,900
  • 3
  • 31
  • 52
3
votes
0 answers

Does `npm search` not work when github packages is configured in .npmrc

I'm experimenting with configuring things to use Github Packages for private components. That's working fine. But in directories where I have things configured to search github before npmjs, npm search seems to have stopped working. I tried…
Marvin
  • 2,537
  • 24
  • 35
3
votes
1 answer

How can I configure spark-submit (or DataProc) to download maven dependencies (jars) from GitHub packages?

I am trying to get spark-submit (via GCP DataProc) to download maven dependencies from a GitHub packages repository. Adding spark.jars.repositories=https://myuser:mytoken@maven.pkg.github.com/myorg/my-maven-packages-repo/ to the spark-submit command…
3
votes
1 answer

Gradle publish to Github package registry returns 403 Forbidden

I am trying to publish my jar to a private repo. Up until December 2019, I was able to successfully publish packages to my repo, in incrementing version numbers. Suddenly, I am unable to do so. I have the latest version currently uploaded to the…
Tejas
  • 157
  • 2
  • 10
3
votes
1 answer

How to use github package registry only for our scoped packages, get the rest from standard npm?

We're trying to use the Github Package Registry to publish our private org packages and they work/that bit is fine. However, when we try to install them/use throughout our projects from the github registry alongside other scoped npm modules that are…
SebastianG
  • 8,563
  • 8
  • 47
  • 111
3
votes
1 answer

Publishing NPM module to github packages registry from Github Actions?

My YML so far, kept adding bits based on other stackoverflow threads + docs: name: Node install, build and test on: [push] jobs: build: runs-on: ubuntu-latest strategy: matrix: node-version: [12.x] steps: - uses:…
SebastianG
  • 8,563
  • 8
  • 47
  • 111
3
votes
1 answer

'Received status code 400 from server: Bad Request' While publishing aar file to Github packages

I am trying to push my library to GitHub Packages. I have configured the personal access token and have the github.properties file in the root folder. The aar file is assembled, using gradle assemble. When I am running the gradle publish command.…
3
votes
3 answers

Retrieve a Github Registry npm package from a Github Action

I have successfully deployed @myorganization/my-super-lib as a GH npm package. Now I would like to use it in an other GH project. This is a private lib, and a private project (important to remember, as the point is moot with public ones). Locally,…
3
votes
2 answers

mvn install package from GitHub package registry

I've followed steps given in this document to deploy a package on GitHub package registry, I'm able to successfully deploy a package. That can be seen here. Now I'm trying to install this as a dependency in another project. As given in the above…
Ashish Chopra
  • 1,413
  • 9
  • 23
2
votes
2 answers

Publishing NuGet package to GitHub Packages Using GitHub Actions

I'm trying to create a NuGet package of my .NET library and publish it to GitHub Packages NuGet registry using GitHub actions. I'm stuck at the publish part. I'm using the following command: dotnet nuget push "bin/Release/MyApp.${{…
Sam
  • 26,817
  • 58
  • 206
  • 383
2
votes
1 answer

How to publish NPM package to NPM registry instead of github registry?

I have created an NPM package like so - (https://github.com/fyndreact/nitrozen) I'm able to successfully publish the package on github (https://npm.pkg.github.com/) However, what I want to do is publish it on NPM registry. I'm not able to see the…
2
votes
1 answer

npm install fails with 405 Method Not Allowed

I am currently working on upgrade some projects to use node 18 with npm 8, from node 12 with npm 6. We're using github as npm repository for our private packages. Now I am getting this error on npm install: npm ERR! code E405 npm ERR! 405 Method…
Cola_Colin
  • 415
  • 5
  • 16
2
votes
2 answers

Deploy Docker Image Hosted On Github Package Registry To Google Kubernetes Engine

So we have a private package registry in github that hosts our docker images. Now I want to use those images for deployment into GKE. Here is a sample of my github action workflow so far. name: Deploy API Deployments on: push: branches: …
2
votes
0 answers

Having trouble consuming private NPM dependency from github

I am trying to consume a private React NPM package from my own github repo. I have successfully published to my github repo the package. In the consumer project, I have sucessfully installed the package using the command my github/packages page…
2
votes
1 answer

How to resolve Github Nuget Packages Error 500?

I have packages in my private GitHub account as well as in that of my organisation, which I have always used. Now I wanted to add new to them, so I created a new PAT and tried it out a bit. But now I have the problem that my packages can no longer…