-
I am trying to publish to github but I don't understand what I am doing wrong, because I am getting 404 or 405 or other error codes
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 15 replies
-
Hi, GitHub registry has some restrictions on npm package naming. In short, they need to be scoped to your username (so for me that would be @mpetuska/package-name). You can achieve this via scope.set() dsl. More details here: https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-npm-registry#publishing-a-package P.S. You don't need to set the uri when using gitHub registry shortcut. |
Beta Was this translation helpful? Give feedback.
Hi, GitHub registry has some restrictions on npm package naming. In short, they need to be scoped to your username (so for me that would be @mpetuska/package-name). You can achieve this via scope.set() dsl.
More details here: https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-npm-registry#publishing-a-package
P.S. You don't need to set the uri when using gitHub registry shortcut.