Open guizmaii opened 2 years ago
I think what is happening here is that the Github action is confused and the yarn publish
is trying actually to do the publishing of an npm package, that needs a specific token ( not the GITHUB_TOKEN of electron forge )
What I did in my repo is that I replaced the package.json script publish
by publish-app
:
"scripts": {
"start": "electron-forge start",
"package": "electron-forge package",
"make": "electron-forge make",
"publish-app": "electron-forge publish",
"lint": "eslint --ext .ts,.tsx ."
},
Of course also updated my github action to run yarn publish-app
instead of yarn publish
Pre-flight checklist
Electron Forge version
6.0.0-beta.63
Electron version
v18.1.0
Operating system
All
Last known working Electron Forge version
No response
Expected behavior
See "Actual behavior" description
Actual behavior
In my
forge.config.js
config, following this doc https://js.electronforge.io/publisher/github/interfaces/publishergithubconfig#authtoken, I have:When I
yarn publish
in my CI, I have the error:To fix, this issue I had to remove the
authToken
from theforge.config.js
config:and change the command run in CI with:
which finally works as expected:
Steps to reproduce
See "Actual behavior" description
Additional information
No response