-
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
Token Authentication Failure on Publish to Custom Registry #33
Comments
Might have something similar on my end:
just threw this error
|
Managed to resolve my issue. Looks like the token I had generated for authentication was for npmjs.org instead of my private registry. After much struggling with being able to create an authentication token I eventually found carlosen14's post describing the process of logging in to NPM on the registry and then copying out the authentication token that generates. |
Not entirely sure if this is an issue or a misconfiguration on my part but any guidence would be greatly appreciated.
I've been trying to setup a private registry that I can use to host various Unity packages that I've created over the years in a single location, using this tool to automatically publish updates.
I setup the GitHub action following the example in the readme for the package with some slight tweaks to point it at my custom package registry.
Everything appears to work, running with
dry-run: true
runs through the action as one would expect. It generates a package and stops short of publishing it. When the version in the package.json is not modified it's able to read the previous version and not publish the package.But when trying to run the actual action to publish updates, I seem unable to fix the
npm ERR! code E401 Unable to authenticate, your authentication token seems to be invalid
error that is caused. I've used powershell with my authentication token to callnpm publish --registry=[RegistryAddress:Port]/:_authToken=[AutomationAuthToken]
manually with success. I've crawled through the forum posts to try and determine what the cause could be (package.json setup, npmjs.com account verification etc.).I've attached the log for the NPM Publish step in case that's any help
NPMPublishStep.log
Any assistance in resolving this would be greatly appreciated, just starting out with this kind of setup and am open to any suggestions you may have.
The text was updated successfully, but these errors were encountered: