Failing when publishing to GitHub Packages #30949
-
I'm trying to build a JavaScript library from a private repo in my org and publish it to GitHub Packages. Followed all the steps in the docs. Made a PAT, authenticating successfully as far as I can tell. My {
"name": "@myorg/my-project",
"collaborators": [
"Mat Leonard <leonard.mat@gmail.com>"
],
"version": "0.1.0",
"files": [
"my_project_bg.wasm",
"my_project.js",
"my_project_bg.js",
"my_project.d.ts"
],
"module": "my_project.js",
"types": "my_project.d.ts",
"sideEffects": false,
"repository": "https://github.com/myorg/my_project.git"
} I have a
I repeatedly get this error:
It just says Bad Request without more information to help me. As far as I can tell, I'm doing everything correctly. Is there a way to get more information so I can tell what's going on? Or do I need to do anything special on the org level? Maybe there's something I need to do because the repo and package are private? |
Beta Was this translation helpful? Give feedback.
Replies: 14 comments 13 replies
-
I have encountered the same the past 2 hours. I have tried many variations of config after the instructions in the npm registry dev guide lead to the 400 Bad Request response during publishing but I always received the same error response. |
Beta Was this translation helpful? Give feedback.
-
I have also been getting the same error for almost 6 hours now. I have tried with private and public repositories. Maybe it's a GitHub thing? |
Beta Was this translation helpful? Give feedback.
-
Same for me. Tried different configurations and no success |
Beta Was this translation helpful? Give feedback.
-
I'm experiencing this issue as well. |
Beta Was this translation helpful? Give feedback.
-
Same problem for me. |
Beta Was this translation helpful? Give feedback.
-
Exactly the same problem on my end. I did everything I could. No dice. Below is a perfect copy+paste of something that I posted on Stack Overflow. I have no idea what I'm doing wrong. I have followed every possible tutorial on the Internet that involves both publishing directly from the command line by invoking Always fails. I always get the same 400 error. Out of desperation, I attempted to follow a tutorial to the letter, but no dice. This is the output from the log after npm publish, and looking at the log output (assuming it even helps).
|
Beta Was this translation helpful? Give feedback.
-
I have just created a ticket to GitHub support. Hopefully, that grabs their attention. |
Beta Was this translation helpful? Give feedback.
-
Same problem for me |
Beta Was this translation helpful? Give feedback.
-
My package just published to the registry today after being unable to Friday. I did publish a package via GITHUB_TOKEN in a workflow in between, so maybe that affected the subsequent PAT submission. I recommend trying your submissions again and seeing if it works. If your PAT based npm publish still fails, maybe try to do a GITHUB_TOKEN workflow based publish in a public repository using this template: https://github.com/github-packages-examples/npm-publish |
Beta Was this translation helpful? Give feedback.
-
My package is working right now. Thanks for the update. |
Beta Was this translation helpful? Give feedback.
-
Things seem to be working, now. |
Beta Was this translation helpful? Give feedback.
-
Hi:wave: from Github Packages Team here, The issue was limited to packages published to new namespaces and is fixed as of yesterday. |
Beta Was this translation helpful? Give feedback.
-
GitHub Actions and Packages are now separate categories. While both of their features play well together, they are separate products and we want to give each of them their own space for questions and feedback. Keeping that in mind, this discussion has been moved over from the Actions category. |
Beta Was this translation helpful? Give feedback.
-
Was hitting this error and didn't realize that my organization name (ORGANIZATION/REPO) and my scope @ORGANIZATION/PACKAGE had to be the same. Then it started working! Not convenient, but fixed my problem! |
Beta Was this translation helpful? Give feedback.
Hi:wave: from Github Packages Team here,
The issue was limited to packages published to new namespaces and is fixed as of yesterday.
Please check if this is working.