Closed bdr99 closed 5 months ago
Thanks for your contribution @bdr99! Following the example of actions/setup-node, I added some tests and a little bit of extra logic to ensure the registry always ends in a trailing slash
Thanks for merging this, and for adding those tests!
Thanks for creating this action! I was trying to use it to publish to a private npm registry, but ran into an issue with authentication.
My workflow looked like this:
And this is the output I was getting from the action when I tried to run the workflow:
After much troubleshooting, I realized that the problem was in the npmrc file. Authentication would only work if the auth token line included the host and path from the registry URL, not just the host. With this change, I was able to publish successfully to the private registry. I'm hoping to get this merged in case it helps anyone in a similar situation to mine.