-
Notifications
You must be signed in to change notification settings - Fork 76
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
Unable To Publish To Github Package Registry !! #14
Comments
@varunsridharan - I can't access the GitHub repo that you linked to, so I can't view the log. Can you post it here instead? Also, can you be sure to enable debug logging in GitHub Actions so it includes more details, please? |
@JamesMessinger sorry about that. well i was working on trying to things working. so deleted the repo and keep working please check this commit : g-actions/npm-publish@5a1378e |
@JamesMessinger and also i found that we can't publish scoped npm packages using this action for that i changed and i was able to get things working with scoped package by making below changes - let command = options.dryRun ? [ "publish","--dry-run" ] : ["publish" ];
+ let command = options.dryRun ? [ "publish","--dry-run","--access","public" ] : ["publish","--access","public" ]; |
@varunsridharan - The bug with it not publishing a new package should be fixed now. I've merged PR #12 which effectively does the same thing as your workaround. The action does work with scoped NPM packages, but NPM defaults to making scoped packages private, which requires a paid account. A workaround would be to add an |
well even after merging #12 pull request it did not work when new package is published so i had to make a small change |
It looks like you modified the |
yes i did !! |
@varunsridharan - I just published version 1.4.0, which adds an |
@JamesMessinger @varunsridharan Hello! The author of #12 here. Turns out, not only you can make a wrong PR but also a wrong test for a wrong PR that all seem valid :D But the issue is quite strange itself: I spend around an hour of debugging in a dance to figure out what's wrong. Let's start with #12 - this was incorrect, because NPM returns the exit status code When I understood it, I fixed it to return the exit code So I found the only working magic combination of the code to satisfy both the test and a real state of things which I am contributing now by #19. |
I have tried to use this action to publish in Github Package Registry .
but it keeps failing
here is the action log
https://github.com/varunsridharan/npm-proxy/runs/1177247171?check_suite_focus=true
Note i did merge #12 in my fork and did a small change but still can't get it to work.
Changes I did : g-actions@5a1378e
The text was updated successfully, but these errors were encountered: