Introduction
Create Electron Application
Build on Linux, Windows and macOS
Publish Release to GitHub
Draft Releases
Outlook
Introductio...
For further actions, you may consider blocking this person and/or reporting abuse
If I understand correctly you probably want to change
npm install
tonpm ci
.npm install
will use the latest compatible dependencies where asnpm ci
will use what's in package-lock.json.Yeah, that is a good hint! :)
Thanks for a great article. You have a typo in the use of 'draft' - which needs to be outside the repository json config, not inside it. It should look like:
Also, as you are no doubt aware, there is a shorthand way of specifying jobs for all operating systems, which means a much shorter
yml
workflow file and no duplication of lines needed.Hoping you write some follow up articles about auto-updating and code signing!
Ah thanks, fixed the
draft
typo.I've seen the matrix build before but it didn't come to mind at the time. Thanks for the addition, it's much more concise!
Hi @erikhofer thanks for the article. One thing I want to know: Can this be done with private repo?
Thanks! I haven't tried it yet but I think yes.
If you need to use a special
authToken
, this can be configured: js.electronforge.io/publisher/gith...Also note that GitHub Actions has an execution time quota for private repos, see github.com/pricing
I am trying this on a private repo. All the steps run fine including the Release step, but I dont see any other files in assets (I mean an executable for the electron app after publishing) . See attached image.
Thanksss. It help me lots
Great article. How long did it take before the executables were added to your release?
Thanks! It mainly depends on the build time of the application, in the example it's about 3 minutes.
Is it normal to be asked my npm credentials when I run
electron-forge publish
? Curious as I didn't expect my app to be published to npm and publicly too.Great article! It was exactly what I was looking for.
Receiving the following error when running build.yml
Run npm run make npm ERR! missing script: make
Do you have a script named
make
in yourpackage.json
like here github.com/erikhofer/electron-publ... ?You could also use
npx electron-forge make
instead ofnpm run make
if you want no extra script for it.