Skip to content
This repository has been archived by the owner on Oct 13, 2024. It is now read-only.

Can not get the action to work, #51

Open
richard457 opened this issue Dec 5, 2020 · 6 comments
Open

Can not get the action to work, #51

richard457 opened this issue Dec 5, 2020 · 6 comments

Comments

@richard457
Copy link

richard457 commented Dec 5, 2020

I am having the bellow issue:

info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
child_process.js:660
    throw err;
    ^
Error: Command failed: yarn
    at checkExecSyncError (child_process.js:621:11)
    at execSync (child_process.js:657:15)
    at run (D:\a\_actions\samuelmeuli\action-electron-builder\v1.6.0\index.js:21:27)
    at runAction (D:\a\_actions\samuelmeuli\action-electron-builder\v1.6.0\index.js:109:2)
    at Object.<anonymous> (D:\a\_actions\samuelmeuli\action-electron-builder\v1.6.0\index.js:150:1)
    at Module._compile (internal/modules/cjs/loader.js:959:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
    at Module.load (internal/modules/cjs/loader.js:815:32)
    at Function.Module._load (internal/modules/cjs/loader.js:727:14)
    at Function.Module.runMain (internal/modules/cjs/loader.js:1047:10) {
  status: 1

How Can I fix it?

@richard457
Copy link
Author

This is my yml file for github action

name: Build/release

on: push

jobs:
  release:
    runs-on: ${{ matrix.os }}

    strategy:
      matrix:
        os: [windows-latest] 
        package_manager: [npm]
        #  macos-latest, ubuntu-latest

    steps:
      - name: Check out Git repository
        uses: actions/checkout@v1

      - name: Install Node.js, NPM and Yarn
        uses:  actions/[email protected]
        with:
          node-version: '10.16.3'

      - name: Build/release Electron app
        uses: samuelmeuli/[email protected]
        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') }}

@juliangruber
Copy link
Collaborator

I assume it's because you specify package_manager: [npm] but it needs yarn to run?

@richard457
Copy link
Author

Actually, they are both supported as per documentation.

@richard457
Copy link
Author

Let me test with yarn will get back to you. @juliangruber

@richard457
Copy link
Author

richard457 commented Dec 9, 2020

The issue is the same @juliangruber

error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
child_process.js:660
    throw err;
    ^

Error: Command failed: yarn
    at checkExecSyncError (child_process.js:621:11)
    at execSync (child_process.js:657:15)
    at run (D:\a\_actions\samuelmeuli\action-electron-builder\v1.6.0\index.js:21:27)
    at runAction (D:\a\_actions\samuelmeuli\action-electron-builder\v1.6.0\index.js:109:2)
    at Object.<anonymous> (D:\a\_actions\samuelmeuli\action-electron-builder\v1.6.0\index.js:150:1)
    at Module._compile (internal/modules/cjs/loader.js:959:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
    at Module.load (internal/modules/cjs/loader.js:815:32)
    at Function.Module._load (internal/modules/cjs/loader.js:727:14)
    at Function.Module.runMain (internal/modules/cjs/loader.js:1047:10) {

@suhrmann
Copy link

suhrmann commented Jan 1, 2021

I have the same problem with vue-cli-plugin-electron-builder (that is implicitly used when adding electron-builder via vue add electron-builder):

Instead now I use the built-in publish of electron-builder.

Here are my configs [ Note the Recommended GitHub Releases Workflow of electron-builder ]:


FYI:

Yarn is strongly recommended instead of npm.

electron-builder #Installation

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

No branches or pull requests

3 participants