0

I have my created my github token and set GITHUB_TOKEN value in my env, but I get to the "distributables" step which is strangely misspelled and then it dies. Its like its looking for a release version 1.0.2 which does not exist. I assume this publish action will create the release? Its very unclear how this works from the docs.

✔ Loading configuration 
 ✔ Making a squirrel distributable for win32/x64 [1m17s]
 ✔ Running postMake hook
 › Artifacts available at: ..\out\make
❯ Publishing distributables
 ✖ [publisher-github] Running the publish command
 › Not Found
 › Searching for target release: v1.0.2
An unhandled rejection has occurred inside Forge:
HttpError: Not Found
at ...console\node_modules\@octokit\request\dist-node\index.js:86:21
 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

my repo is public, not sure what else I need to do here? The docs really don't provide much detail. https://www.electronjs.org/docs/latest/tutorial/tutorial-publishing-updating

TY!

asked Nov 18, 2024 at 21:14

1 Answer 1

0

I was confused about the name and owner fields because the documentation does not fully explain that if you are using an org, then name should be the org name which was my issue here.

publishers: [
 {
 name: '@electron-forge/publisher-github',
 config: {
 repository: {
 owner: 'MyOrg',
 name: 'my-repo'
 },
 prerelease: false,
 draft: true
 }
 }
 ]
answered Nov 19, 2024 at 3:44
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.