Open kavinvalli opened 3 years ago
same error, anyone advice?
Same for me 😞
Same for me too
i add
- run: npm install electron-builder --save-dev
in build.yml it's work but error from postInstall -_-
I fixed it by moving the electron dependency to devDeps (I still think that it is not this library to decide where the dep. should be..) And adding an extra env option:
env:
NODE_OPTIONS: '--max_old_space_size=4096'
I fixed it by moving the electron dependency to devDeps (I still think that it is not this library to decide where the dep. should be..) And adding an extra env option:
env: NODE_OPTIONS: '--max_old_space_size=4096'
I did not understand very well, I have the same problem but I do not have much knowledge of Actions. 😢
i add
- run: npm install electron-builder --save-dev
in build.yml it's work but error from postInstall -_-
Having the same error, but this did not solve the problem. Did anybody find another approach?
You could add the environment variables in the workflow yaml file. This is an example:
- name: Build/release Electron app
uses: samuelmeuli/action-electron-builder@v1
with:
# GitHub token, automatically provided to the action
# (No need to define this secret in the repo settings)
github_token: ${{ secrets.github_token }}
# If the commit is tagged with a version (e.g. "v1.0.0"),
# release the app after building
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
env:
NODE_OPTIONS: '--max_old_space_size=4096'
I was getting a similar error, but after checking a little closer, I was trying to build pacman packages but with the current runner, it seems that Github changed the default runner to Ubuntu 20.04 a few months ago https://github.blog/changelog/2020-10-29-github-actions-ubuntu-latest-workflows-will-use-ubuntu-20-04/
This is causing some errors related with the missing binary bsdtar
used by the pacman builder. I found this workaround https://github.com/electron-userland/electron-builder/issues/4181 . Just install libarchive-tools
for the runner.
Can you try this? This is a reported error https://github.com/samuelmeuli/action-electron-builder/issues/42
Hi. I am getting this error in the workflow
Should I add it in my dependencies?