Skip to content
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

electron-forge publish fails in "Searching for target release" - tries to publish to undefined #494

Closed
3 tasks done
benjtinsley opened this issue Apr 24, 2018 · 1 comment

Comments

@benjtinsley
Copy link

benjtinsley commented Apr 24, 2018

  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project follows, as appropriate.
  • I have searched the issue tracker for an issue that matches the one I want to file, without success.

Please describe your issue:

When trying to run electron-forge publish the task fails after it tries to publish to the url https://undefined/

Console output when you run electron-forge with the environment variable DEBUG=electron-forge:*. (Instructions on how to do so here). Please include the stack trace if one exists.

✔ Checking your system
✔ Resolving Forge Config
We need to package your application before we can make it
✔ Preparing to Package Application for arch: x64
✔ Compiling Application
✔ Preparing native dependencies
✔ Packaging Application
Making for the following targets:
✔ Making for target: zip - On platform: darwin - For arch: x64
✔ Making for target: dmg - On platform: darwin - For arch: x64
✔ Resolving publish target: github
⠋ Searching for target releaseDEPRECATED: protocol option is no longer supported
✖ Searching for target release

An unhandled error has occurred inside Forge:
request to https://undefined/repos/priviahealth/desktop/releases?per_page=100 failed, reason: connect ECONNREFUSED 198.105.244.23:443
HttpError: request to https://undefined/repos/priviahealth/desktop/releases?per_page=100 failed, reason: connect ECONNREFUSED 198.105.244.23:443
    at fetch.then.then.catch.error (/Users/benjtinsley/sites/desktop-privia/node_modules/@octokit/rest/lib/request/request.js:88:13)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:118:7)
error An unexpected error occurred: "Command failed.

What command line arguments are you passing?

$ electron-forge publish

What does your config.forge data in package.json look like?

"config": {
  "forge": {
    "make_targets": {
      "win32": ["squirrel"],
      "darwin": ["zip", "dmg"]
    },
    "publish_targets": {
      "win32": ["github"],
      "darwin": ["github"]
    },
    "electronPackagerConfig": {
      "packageManager": "yarn",
      "icon": "./src/app-icon/app",
      "asar": true,
    },
    "github_repository": {
      "owner": "priviahealth",
      "name": "desktop",
      "draft": true,
      "prerelease": true
    }
  }
}
@malept
Copy link
Member

malept commented Apr 24, 2018

Thanks for filing an issue. This is a duplicate of #493, please follow that issue for updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants