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

How to install maven dependency from Github packages?

I have created a maven dependency in Github package. I am trying to install this dependency in my another mule project. settings.xml: github
anonymous
  • 81
  • 9
2
votes
1 answer

What is the difference between github container registry and github artifact space?

I uploaded many GitHub artifacts, causing the GitHub free storage space (50 GB) to run out. Most of these artifacts were copies or had very small changes. Assuming that these were stored in layers as diffs from parent images (like docker images are…
Harshit Nagar
  • 368
  • 3
  • 16
2
votes
1 answer

Login github package registry in private repository from github action service

we are trying to use a private docker image hosted on the Github Package of our organization. Something like this: on: push jobs: runner-job: runs-on: ubuntu-latest services: postgres: # Github Registry image here …
Antonio Gamiz Delgado
  • 1,871
  • 1
  • 12
  • 33
2
votes
0 answers

Private github npm repositories on Netlify

I've been trawling documentation on Netlify's site for how to deploy a node application (specifically a Vue application) which has a private npm repository as a dependency. I have an .npmrc file setup as…
Micheal J. Roberts
  • 3,735
  • 4
  • 37
  • 76
2
votes
0 answers

Configure `.npmrc` to get one scoped package module from npm and the others from github packages

I'm using a scoped package in my application, some modules from it are stored on GitHub packages and the rest are in npm registry. Till now I was using only one module that is stored on GitHub, but now I need to install another one stored on…
Vardan
  • 55
  • 1
  • 10
2
votes
1 answer

Cannot publish npm package to GitHub packages

I'm trying to publish npm package to the GitHub package registry. Here is my package.json file and .npmrc file package.json { "name": "@chathurabuddi/constants", "version": "1.0.0", "description": "All constants", "main": "index.js", …
Chathura Buddhika
  • 2,067
  • 1
  • 21
  • 35
2
votes
1 answer

Kotlin/Js add npm dependency from custom registry

I'm developing an application with Kotlin/JS and Gradle. I can easily add npm dependencies from the default npm registry with the implementation npm("query-string", "7.0.0") command. However, I cannot add an npm dependency from a different npm…
Yannick
  • 4,833
  • 8
  • 38
  • 63
2
votes
2 answers

Heroku throws "Incorrect or missing password." error when trying to install. Not happening locally

I have a private GitHub package dependency that's registered through npm. https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-npm-registry Installing and building locally works but Heroku throws the following…
linabell
  • 21
  • 1
2
votes
2 answers

How to fetch maven plugin from Github packages?

I have deployed a java package to Github packages successfully, I tried to consume it successfully as a dependency: com.example demo
Jehad Nasser
  • 3,227
  • 5
  • 27
  • 39
2
votes
2 answers

I cannot declare import for gradle dependency of my just published library

UPDATE2: I was not generating a aar file, now it's included in the package that you can check here: https://github.com/fabrizioiacobucci/range-bar-preference/packages/787218 I see javadoc, sources and aar are there, but when I add the package as…
2
votes
1 answer

How to deprecate an npm package published to the GitHub package registry?

I have a private package published to the GitHub package registry. I now want to deprecate it. I tried running this.. npm deprecate --verbose @test-engineering/test-roles "This package has been deprecated and superseded by @test-engineering/test-r -…
krishwader
  • 11,341
  • 1
  • 34
  • 51
2
votes
1 answer

How can I solve a conflict when publishing artifacts with classifier to GitHub Packages that share a pom?

tl;dr: I'm trying to solve this issue. I have a project which builds a platform-dependent JAR and adds a classifier according to the…
erip
  • 16,374
  • 11
  • 66
  • 121
2
votes
2 answers

Ansible github_packages

There are two releases that can be obtained from a GitHub repo (Binary Releases and Package Releases) as shown below: I want to use Ansible to retrieve Package Releases from my GitHub Repo I did some searching on Ansible docs and found a collection…
Mervin Hemaraju
  • 1,921
  • 2
  • 22
  • 71
2
votes
0 answers

Cannot log in Docker to push images to Github

After successfully (at least according to command output) authenticating Docker with docker.pkg.github.com, λ cat ~/.github/packages-token.txt | docker.exe login -u tomasaschan --password-stdin docker.pkg.github.com Login Succeeded I try to push my…
Tomas Aschan
  • 58,548
  • 56
  • 243
  • 402
2
votes
1 answer

React-Native init with template from private registry

Someone know if it's possible to use a react-native template from a private registry, like Github Packages? react-native init myproject --template mytemplate if my template is published on github packages, how I tell to react-native to get it from…