-
Notifications
You must be signed in to change notification settings - Fork 74
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
Publish failure message is masked by TypeError: _b.toUpperCase is not a function
#119
Comments
How embarrassing! Thanks for the report and the helpful lesson in making assumptions when consuming JSON from third parties. I've just released 2.2.1 which will resolve the I'll keep an eye out in case whatever issue this was hiding is also related to a bug here - uses: JS-DevTools/npm-publish@5a85faf05d2ade2d5b6682bfe5359915d5159c6c # v2.2.1 |
Don't be embarrassed :-) We've upgraded to 2.2.1 and we'll find out on Tuesday whether it improves matters. Thanks for the fix! |
Hi, we still got a failure (for still-mysterious reasons, since it works for me on my dev machine...) and the error, while different, is no more enlightening:
Do you have any ideas how we can find out what is going on? Thanks for your help! |
Hi @andybalaam, if you haven't already, you could try re-running the job with debug enabled from the GitHub UI. This will print the exact I'm on vacation with my family until Friday, but I can take a closer look on Saturday! |
A random thought: I know y'all run a pre-publish script which runs a build step. Perhaps it is that build script that is failing? Might explain the lack of info from npm, because expected stuff like auth failures have well defined codes that you would be seeing if that was the cause |
Thank you for the tip - I have done that here: https://github.com/matrix-org/matrix-react-sdk/actions/runs/5587454119/jobs/10212963945 and I can see there are errors from our TypeScript process.
Enjoy your holiday and don't give this another thought! You have already helped a bunch.
Yes, you were right. Now I will attempt to figure out why ... :-) |
Hi, our NPM publish failed after your (much-appreciated) change to upgrade us to npm-publish@v2:
https://github.com/matrix-org/matrix-react-sdk/actions/runs/5520127165/jobs/10066320474
but the error message is masked by this error:
This seems to be caused by this line:
from https://github.com/JS-DevTools/npm-publish/blob/main/src/npm/call-npm-cli.ts#L79
It looks like the
code
is not a string?The text was updated successfully, but these errors were encountered: