title: How to publish electron app to GitHub releases using electron builder?
body: <p>I am trying to publish my electron app to GitHub releases but I cannot get it to work.</p>
  <p>This is what I have:</p>
  <p><code>package.json</code></p>
  <pre class="lang-json prettyprint-override"><code>....
  &quot;scripts&quot;: {
      &quot;start&quot;: &quot;electron . --disable-gpu&quot;,
      &quot;test&quot;: &quot;echo \&quot;Error: no test specified\&quot; &amp;&amp; exit 1&quot;,
      &quot;win&quot;: &quot;electron-builder --windows nsis:ia32&quot;,
      &quot;linux&quot;: &quot;electron-builder --linux&quot;,
      &quot;publish&quot;:&quot;electron-builder -p onTag&quot;
    }, 
   ....
  &quot;build&quot;: {
      &quot;publish&quot;: [
        &quot;github&quot;
      ],
  ....
  }
  
  </code></pre>
  <p>when I run <code>npm run publish</code> it creates the executable but it does not publish on my GitHub releases repository:</p>
  <pre><code>$ npm run publish                                                                            
  
  &gt; Inventory-pro@1.0.1 publish /home/xander/Develop/Electron/InventoryV2
  &gt; electron-builder -p onTag
  
    • electron-builder  version=21.2.0 os=5.3.0-26-generic
    • loaded configuration  file=package.json (&quot;build&quot; field)
    • writing effective config  file=dist/builder-effective-config.yaml
    • packaging       platform=linux arch=x64 electron=7.1.3 appOutDir=dist/linux-unpacked
    • building        target=deb arch=x64 file=dist/Inventory-pro_1.0.1_amd64.deb
  </code></pre>
  <p>I want to publish it so that I can include auto-update on my app on every release.</p>