publish command --auth-token flag not working
See original GitHub issueI am attempting to publish to a private github repo. I either get a 404:
Electron forge was terminated:
{"code":404,"status":"Not Found","message":"{\"message\":\"Not Found\",\"documentation_url\":\"https://developer.github.com/v3\"}"}
Or, if providing --auth-token in the command line, I get a 401:
Electron forge was terminated:
{"code":401,"status":"Unauthorized","message":"{\"message\":\"Bad credentials\",\"documentation_url\":\"https://developer.github.com/v3\"}"}
My forge config looks like this:
{
"forge": {
"make_targets": {
"win32": [
"squirrel"
],
"darwin": [
"dmg"
],
"linux": [
"deb",
"rpm"
]
},
"electronPackagerConfig": {
"icon": "./src/assets/favicon",
"ignore": [
".idea/"
]
},
"electronWinstallerConfig": {
"name": "blahblah_repo"
},
"electronInstallerDebian": {},
"electronInstallerRedhat": {},
"github_repository": {
"owner": "blahblah_owner",
"name": "blahblah_repo"
}
}
},
For the auth token value, I provide a personal access token for the repo, is that correct or is it something else? If it’s correct, what else am I doing wrong?
Issue Analytics
- State:
- Created 7 years ago
- Comments:18 (8 by maintainers)
Top Results From Across the Web
publish command --auth-token flag not working #125 - GitHub
I am attempting to publish to a private github repo. I either get a 404: Electron forge was terminated: {"code":404,"status":"Not Found" ...
Read more >`npm publish` and `npm install` fail depending on `.npmrc ...
Workaround 1: --registry command line flag. When running npm publish , add the --registry flag. This flag enables developers to specify the ...
Read more >rush publish
To commit changes and publish packages, you must use the --commit flag and/or the --publish flag. Optional arguments: -h, --help Show this help...
Read more >Troubleshoot your on-premises scanner deployment
Use the content in this article to help you troubleshoot your on-premises scanner deployment. Troubleshooting using the scanner diagnostic tool.
Read more >npm packages in the Package Registry - GitLab Docs
Watch a video demo of how to publish npm packages to the GitLab Package Registry. ... }/packages/npm/:_authToken=${CI_JOB_TOKEN}">.npmrc - npm publish.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@guizmaii I think you may have had a different issue there. Maybe you figured it out but since I ran into this too I thought I’d mention the solution for anyone finding this later. Turns out that
yarn publish
is a command that tries to publish the package to npm. You could tryyarn run publish
instead to see if that worksOn OSX/Linux, running
GITHUB_TOKEN=whatever electron-forge publish
will be sufficient.