Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I get the package from GitHub packages? #37

Open
andreyfel opened this issue Oct 23, 2023 · 5 comments
Open

How do I get the package from GitHub packages? #37

andreyfel opened this issue Oct 23, 2023 · 5 comments

Comments

@andreyfel
Copy link

I see WARN  deprecated @zestia/[email protected] and the npm page says Moved to GitHub Packages.
How do I install the package? The instructions in readme seem out of date.

I also don't see any packages when I go to https://github.com/orgs/zestia/packages?repo_name=ember-modal-dialog.

@amk221
Copy link
Contributor

amk221 commented Oct 23, 2023

Oooh, apologies. I thought they were public 👀

@amk221
Copy link
Contributor

amk221 commented Oct 24, 2023

Sorry about that!

When publishing to npm, the published package inherited its visibility from the private field in package.json

But when publishing to Github, it seems we have to manually set it to public (Done now).

Here are the instructions to install packages hosted on Github

Please let me know if that helps

@andreyfel
Copy link
Author

Thanks, I see the package now!

However, I don't quite understand how it is supposed to work in terms of auth. I see I need to specify my personal access token in the .npmrc file. Of course, I can't commit it, which means that every other engineer in the team will have to create a token and insert it into his version of .npmrc.

Also, according to our security policy, we can't use personal access tokens which actually makes it impossible to download packages from Github Packages.

Is there a chance that you reconsider the decision to stop publishing to npm?

@andreyfel
Copy link
Author

I see it is frustrating not only to me https://github.com/orgs/community/discussions/19037

@amk221
Copy link
Contributor

amk221 commented Oct 26, 2023

Ah crap. I don't think I can help :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants