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

Could not find a publish target with the name: @electron-forge/publisher-github #1951

Closed
3 tasks done
Razviar opened this issue Sep 5, 2020 · 2 comments · Fixed by #1962
Closed
3 tasks done

Could not find a publish target with the name: @electron-forge/publisher-github #1951

Razviar opened this issue Sep 5, 2020 · 2 comments · Fixed by #1962
Labels

Comments

@Razviar
Copy link

Razviar commented Sep 5, 2020

Preflight Checklist

  • 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 a bug that matches the one I want to file, without success.

Issue Details

  • Electron Forge Version:
    • 6.0.0-beta.53
  • Electron Version:
    • v10.1.1
  • Operating System:
    • Windows 10 (19042.487)
  • Last Known Working Electron Forge version::
    • 6.0.0-beta.52

Expected Behavior

Command "npm run publish" gets app published on GitHub

Actual Behavior

Getting error:

√ Making for target: squirrel - On platform: win32 - For arch: x64
× Resolving publish target: @electron-forge/publisher-github

An unhandled error has occurred inside Forge:
Could not find a publish target with the name: @electron-forge/publisher-github. Make sure it's listed in the devDependencies of your package.json
Error: Could not find a publish target with the name: @electron-forge/publisher-github. Make sure it's listed in the devDependencies of your package.json
at asyncFn (D:\mtgap\node_modules@electron-forge\core\src\api\publish.ts:170:17)
at D:\mtgap\node_modules@electron-forge\async-ora\src\ora-handler.ts:35:5
at new Promise ()
at asyncOra (D:\mtgap\node_modules@electron-forge\async-ora\src\ora-handler.ts:34:10)
at publish (D:\mtgap\node_modules@electron-forge\core\src\api\publish.ts:167:13)
at D:\mtgap\node_modules@electron-forge\cli\src\electron-forge-publish.ts:36:3
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] publish: electron-forge publish
npm ERR! Exit status 1

To Reproduce

Try to "npm run publish"

Additional Information

MAKE operation works fine, as well as app launches normally in DEV mode. But publish command fails for some reason.

package.json looks like this:
"devDependencies": {
"@electron-forge/cli": "6.0.0-beta.53",
"@electron-forge/maker-deb": "6.0.0-beta.53",
"@electron-forge/maker-dmg": "6.0.0-beta.53",
"@electron-forge/maker-rpm": "6.0.0-beta.53",
"@electron-forge/maker-squirrel": "6.0.0-beta.53",
"@electron-forge/maker-zip": "6.0.0-beta.53",
"@electron-forge/plugin-webpack": "6.0.0-beta.53",
"@electron-forge/publisher-github": "6.0.0-beta.53",

and "npm install" worked fine after version increment.

@Razviar Razviar added the bug label Sep 5, 2020
@Razviar
Copy link
Author

Razviar commented Sep 5, 2020

With devDep @electron-forge/publisher-github": "6.0.0-beta.52", " it worked.

@Razviar Razviar closed this as completed Sep 5, 2020
minter added a commit to minter/mxvoice-electron that referenced this issue Sep 6, 2020
@minter
Copy link

minter commented Sep 6, 2020

I got hit with this as well. Falling back to 6.0.0-beta.52 worked for me as well.

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

Successfully merging a pull request may close this issue.

2 participants