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

Dotnet restore GitHub Packages in Dockerfile

How can I restore nuget packages hosted in GitHub packages within a Dockerfile? When I create a NuGet.config file, I need to set a token there (only a readonly token) to access GitHub Packages, even on public repositories :-( . This password will be…
2
votes
0 answers

Cannot download or update snapshot dependency hosted on Github Package Registry using gradle

I have an issue with Github Package Registry when I try to push or download SNAPSHOT versions of ny gradle plugin. When I first send publish my package everything works fine but then when I try to install or update this package, I get the following…
2
votes
1 answer

Logging out of GitHub Packages for npm

I'm building a project that uses a private GitHub package. I have been using it locally with npm login --registry=https://npm.pkg.github.com which, in hindsight, was not the smartest thing as I actually need to use it in the production environment.…
Michał Sadowski
  • 1,946
  • 1
  • 11
  • 24
2
votes
1 answer

Github private repo - manage packages for different environment

Recently we moved our Db models (Sequelize) to a sperate repository, and we publish it using Github packages. When we moved it to a sperate repository we found that we need to install different versions based on the environment…
2
votes
1 answer

What is GraphQL query to determine if GitHub package exists within an Organization?

How do I query GitHub Packages to determine whether a package already exists? I want to prevent CI/CD from attempting to publish a Maven package if that package already exists. I'm trying a query that looks like: curl -X POST -H "Authorization:…
John
  • 10,837
  • 17
  • 78
  • 141
2
votes
2 answers

Failed to publish maven dependency using GitHub Packages (beta)

I am trying out GitHub packages beta, i have a maven project which i want to publish. In the POM.xml i did add below tag. test-package is my repository name. github GitHub amarkum Apache Maven…
Amar Kumar
  • 31
  • 8
1
vote
1 answer

Push to git packages fails with valid GITHUB_TOKEN

Fully studied the github doc on pushing packages to Git. All the points in the docs are met in the code from the instructor that I'm using. Looked for typos, etc. This is the course YAML, it compares exactly to the instructor version: name: Push to…
1
vote
0 answers

How to see Github container registry push history?

There are multiple users with write access rights to Github Package. There is a list of versions pushed, but I cannot find information on who pushed the particular version of the container image. Is it possible to find out who pushed an image? I…
keliramu
  • 36
  • 4
1
vote
0 answers

Solution | How To Create Dependency of Own Utility Project

By uploading it to GitHub's own package registry, you can easily use the relevant dependency in your project. For applications written with Spring Boot + Maven, you can follow the steps below: To enable deployment of the project on GitHub, you…
1
vote
1 answer

gitlab: How to include build artifacts when adding a package via ci pipeline to the composer package registry

I added a very basic pipeline to export my packages to a private gitlab package registry. Using the .gitattributes file to mask files, that should not be contained in the archive works fine but how could i prebuild some artifacts (for example scss…
Philipp Wrann
  • 1,751
  • 3
  • 19
  • 29
1
vote
0 answers

Publish a package to Github using Semantic-release

Update2: I spent way to many hours trying to make this work, it has been tiring and frustrating, I am now doing everything manually. I do the release manually and I publish the package locally with my terminal, as it works fine with no problem. I…
1
vote
0 answers

Error When Publishing an NPM Package to Github Packages

I experiencing an error when trying to publish an NPM package to Github Packages. Firstly, I created a Personal Access Token ("PAT") with repo, write and read scopes. The I added a .npmrc file to my project with the following…
onefootswill
  • 3,707
  • 6
  • 47
  • 101
1
vote
1 answer

Is it possible to Install-Module from public GitHub Packages location?

I have been able to successfully publish a PowerShell module of my own creation to the repo's GitHub Packages location. I have utilized several resources to get that accomplished. The problem comes in after that. I cannot seem to be able to run…
1
vote
1 answer

How to create sfc package using vite for vuejs on GitHub package registry?

I want to create a monorepo of private package using vite (vueJS) in GitHub package registry. Any npm package suggestion for it please?
arbs23
  • 38
  • 6
1
vote
3 answers

Getting version number for package in Github Actions

I'm trying to set up my "first" GitHub action to publish the NuGet package of .NET library to my private GitHub Packages registry. I want my action to get the version number of the package from the .csproj file. I'm trying to follow the instructions…
Sam
  • 26,817
  • 58
  • 206
  • 383