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

GitHub action unable to upload jar file in github pckage

I am using GitHub action to deploy a BW6 applications also store the artifact in github package. below is my dev.yaml file name: Tibco Workflow on: pull_request: branches: [ dev ] release: types: [created] jobs: build: …
0
votes
1 answer

Install private package in a github action

I am working with some private packages hosted on github. In my workflow I have this: - name: Set GitHub packages registry run: | echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc - name:…
Kaiser Soze
  • 1,362
  • 3
  • 14
  • 31
0
votes
0 answers

What is the difference between Github Packages and Npm Private packages?

We want to publish private packages within our company. But I can't understand the difference between Github packages and NPM private packages. For me both seems like registry for hosting private packages. But what are the differences and Which…
0
votes
0 answers

Install package from github packages in azure pipeline

I've been trying to install 1 npm package from github packages in docker containers that are created in the azure pipelines. I added one service connection for npm in azure's service connection settings and the specific .npmrc file for that github…
0
votes
0 answers

Can not add maven github package in spring boot gradle project as dependency

We want to add this github package to our gradle project. build.gradle file: plugins { id 'java' id 'org.springframework.boot' version '3.1.0' id 'io.spring.dependency-management' version '1.1.0' } group = 'com.ssi.test' version =…
Nitin
  • 2,701
  • 2
  • 30
  • 60
0
votes
0 answers

How to use GitHub API to retrieve the latest version of a package?

I'm publishing my build artifacts (JARs, WARs) to a GitHub Packages repository. In the web UI I can easily download any version of the packages, and the latest version is what shows up by default when visiting a package's page. How can I use the…
E-Riz
  • 31,431
  • 9
  • 97
  • 134
0
votes
0 answers

How to access private maven artifact package in Github from Google Cloud Build

I have a Google Cloud Build trigger which builds my Spring Boot app. Now I have to use jar from private Github Maven repository. So I need to provide 'settings.xml' to build process to access this package. My cloud build config: steps: - name:…
0
votes
2 answers

Maven it's installing dependencies from Github packages, but when performing Maven install it's giving error

I've created two projects, one is an API (I'll call it search-api) to elasticsearch and the other an API (persistence-api) to postgreSQL, I need to have search-api as an dependency in persistence-api. I fallowed the docs and I've watched some…
0
votes
1 answer

Installing Nuget packages from Gihub Package Feed - MethodNotAllowed

Overview I have managed to package and push a dotnet Project Template file to the Github nuget package feed. Package is visible here: https://github.com/TristanRhodes/TestedLibraryTemplate/pkgs/nuget/TestTemplate I am unable to pull / install this…
0
votes
1 answer

Unable to Push Historical NPM Packages to Github Packages

I've been trying to work out how to push historical NPM packages to Github. My company wants to move it's package hosting/management from a private package manager to Github Packages. So, we have a whole history of versions, going back several years…
0
votes
0 answers

Publish package to yarn, npm and github registry

I just created my first package and as I wanted to show it on my GitHub profile so I published it to the GitHub package registry. Now I ran into a problem I can't npm install it without specifying the GitHub registry. Alright just uploaded it to the…
0
votes
0 answers

Github Packages authentication failure from GitHub Action

I am receiving an authentication error (401) when trying to restore a package from my other GitHub repository package source. My project called Identity (in it's own repo) consumes my project (in a separate repo) called Core. Local build and…
Webjedi
  • 4,677
  • 7
  • 42
  • 59
0
votes
1 answer

GCP Cloud Build suddenly cannot fetch npm package from Github Package

I've my working Cloud Build fetching private npm package from Github. I've already setup the .yarnrc npmRegistryScopes and auth token. It worked for the whole day. Then suddenly it stopped working and gave me this in the Cloud Build yarn install…
kitta
  • 1,723
  • 3
  • 23
  • 33
0
votes
1 answer

Github Actions publish to Github Package registry fails with 401 using GITHUB_TOKEN (suddenly)

a Github Actions workflow stopped working throwing a 401 error when publishing a repo's package to the Github package registry. Within the workflow (detailed below) I am using semantic-release to publish the artefact to the registry. This is the…
baouss
  • 1,312
  • 1
  • 22
  • 52
0
votes
1 answer

npm i failed because of dependency in private registry

I published a private npm package for internal usage (to npm.pkg.github.com). then i created another private npm package in the same registry which uses the first private package as a dependency. all the other packages are from the default npm…