Github package successfully published, but not showing up in "Packages" section
Asked Answered
E

7

11

I have a package that I published to Github package repository and it was successful, still, I am not able to see this package in the packages section

https://i.sstatic.net/WV7fr.jpg

https://i.sstatic.net/kGOFG.png

Please refer to the attached screenshots, as seen npm publish is successful. What could I be missing?

Eurhythmics answered 25/8, 2022 at 9:20 Comment(0)
D
2

I have been experiencing the same thing since Yesterday. I haven't tried with an already released package, but I can confirm new packages are not appearing neither in the org/user packages tab nor in the packages section of the repository despite the fact npm says that they have been published successfully.

Delegation answered 25/8, 2022 at 11:25 Comment(8)
ok , lets wait an see we get a status update from them. Thank you for this updateEurhythmics
I submitted a ticket to Github explaining all this @HiteshBalwani, the more tickets they receive with this issue, the quicker they will pay attention to this in theory.Delegation
does this seem to be of relevance? github.blog/changelog/…Eurhythmics
Their customer service replied to me that they had recently changed the packages permissions, and the issue could be related with this, and indeed it was, the owner of the organization could see the package but I can't, so after going to the package settings and add the repo to it, we can now all see it there. Hopefully this helps to you as well, cheers.Delegation
can you send me the link to the ticket you created?Eurhythmics
Unfortunately I can't, they are personal, you can create one in this link: support.github.com/tickets/personal/0 Do you still have the same problem? Did you try adding the repository to the package permissions?Delegation
I am unable to see the package itself as I am not the owner of my organizationEurhythmics
They are still not showing.Bluestone
I
10

Once you released the package and updated the repo but the package is not showing in the repo as herePackage not found

Steps to link library to repo

  1. Go to your profile on GitHub https://github.com/{your_user_name}?tab=packages. you must see the list of packages like here. List of packages

  2. Click on the package that you need to link to repo. You must get link to repo or go to this link https://github.com/users/{your_user_name}/packages/npm/{your_package_name}/settings

  3. Select the library repo.

  4. You can now view the packages on the repo too.

Iata answered 13/9, 2022 at 6:14 Comment(4)
I don’t even have this list in my packages tab, even tho I have published packagePouf
Have you confirmed that you published the package and that it is from the same account you are currently viewing in GitHub?Iata
I have published to npm registry, it's here npmjs.com/package/zod-to-fields and now I'm trying to publish it also to github registry but it's difficult. Also do publishing to github registry automatically publish it to npm registry? Im confused how it worksPouf
github.com/wojtekKrol/zod-to-fields/actions/runs/9731281664/job/… I have no idea how to add this package to github registry since I cannot do anything from github docs about packagesPouf
H
5

Packages are not visible as releases, they will be visible in packages section for your organization:

https://github.com/orgs/ORGANIZATION/packages

For personal packages:

https://github.com/USER?tab=packages

Keep in mind that packages won't be visible under the repository "Packages" section until their name is the same as a repository. It doesn't matter that you publish it from this repository action. In case you don't have a resository with such a name - it will be created for you by GitHub.

Hardening answered 25/8, 2022 at 9:28 Comment(6)
Please see the 2nd screenshot, its not visible in the Packages section, it should be visible there. Currently it says No packages publishedEurhythmics
Is your repository named "test-package" ? if not it won't be visible there - you should see test-package repository being created and it will be thereHardening
I went through the second link which you posted and yes I am able to see my package there. But my repo is named test-package, I am not able to see in the Packages section of the repoEurhythmics
Neither i am able to see any new repo createdEurhythmics
Are you sure you are publishing to github registry not the official registry ? :DHardening
Found my package under github.com/USERNAME?tab=packages. Thanks!Lofton
D
2

I have been experiencing the same thing since Yesterday. I haven't tried with an already released package, but I can confirm new packages are not appearing neither in the org/user packages tab nor in the packages section of the repository despite the fact npm says that they have been published successfully.

Delegation answered 25/8, 2022 at 11:25 Comment(8)
ok , lets wait an see we get a status update from them. Thank you for this updateEurhythmics
I submitted a ticket to Github explaining all this @HiteshBalwani, the more tickets they receive with this issue, the quicker they will pay attention to this in theory.Delegation
does this seem to be of relevance? github.blog/changelog/…Eurhythmics
Their customer service replied to me that they had recently changed the packages permissions, and the issue could be related with this, and indeed it was, the owner of the organization could see the package but I can't, so after going to the package settings and add the repo to it, we can now all see it there. Hopefully this helps to you as well, cheers.Delegation
can you send me the link to the ticket you created?Eurhythmics
Unfortunately I can't, they are personal, you can create one in this link: support.github.com/tickets/personal/0 Do you still have the same problem? Did you try adding the repository to the package permissions?Delegation
I am unable to see the package itself as I am not the owner of my organizationEurhythmics
They are still not showing.Bluestone
M
1

This could be due to package visibility.

In my organization, we recently started having issues where new releases of some packages had severe read restrictions. The way I identified this issue was this:

  1. In the context of my personal account (or whatever scope you are consuming the packages from), check the packages for whatever repo/org you are having problems with. In our case I could not see the newest version of a package that was reported as successfully pushed in CI.
  2. Get someone with admin access, preferably to the organization (if the repo belongs to an organization), have them check the same thing, and compare results. In our case the org admins could see the latest versions of the package.

If having the above problems, they can be fixed (in the short-term) by setting the package visibility levels by someone with admin access to the organization.

Macarthur answered 24/1, 2023 at 11:12 Comment(0)
I
0

When you publish packages, it's important to know where you're putting them. If you publish your packages to the default npm registry, registry.npmjs.org, they won't automatically appear in the GitHub Packages section of your GitHub repository.

For them to show up there, you need to publish them directly to GitHub Packages. This means using GitHub's package registry instead of the default one. Once you publish your packages to GitHub Packages, they'll be visible in the GitHub Packages section of your repository

Inequity answered 28/3 at 11:28 Comment(0)
B
-1

As a workaround, you could use their List Packages API using GitHub CLI:

  1. Make sure to have a classic token with the minimum required scopes: repo, read:org and read:packages
  2. Authenticate with GitHub CLI using by opening your terminal and execute the following command :
gh auth login

These are the options I choose:

What is your preferred protocol for Git operations? 
HTTPS

Authenticate Git with your GitHub credentials? 
Yes

How would you like to authenticate GitHub CLI? 
Paste an authentication token

Paste your authentication token: 
****************************************
  1. After you are authenticated, run the following command:
gh api \
  -H "Accept: application/vnd.github+json" \
  "/orgs/{YOUR_ORG}/packages?package_type={TYPE}"

// Type can be one of: npm, maven, rubygems, docker, nuget, container
  1. A json will be printed, grab the package id:
  ...
  {
    "id": 1234567,
    "name": "...",
    "package_type": "...",
    "owner": {
      "login": "...",
  ...
  1. Adapt the link with the package ID and paste into your browser: https://github.com/{$ORG}/{$PROJECT}/packages/{$ID}
Bibliophage answered 17/1, 2023 at 9:50 Comment(0)
D
-2

You can add

"repository": {
  "type": "git",
  "url": "git+https://github.com/<user>/<repo>.git"
},

to the package.json. This allows the package to be correctly "mapped" to the repo.

Derina answered 20/11, 2022 at 21:19 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.