action-hosting-deploy icon indicating copy to clipboard operation
action-hosting-deploy copied to clipboard

[BUG] The process '/usr/local/bin/npx' failed with exit code 1

Open yamankatby opened this issue 1 year ago • 8 comments

I'm getting this error in the Deploying to production site group

Action config

"on":
  push:
    branches:
      - yaman/workflow

jobs:
  build_and_preview:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - run: yarn install --frozen-lockfile && yarn run build-storybook
      - uses: FirebaseExtended/action-hosting-deploy@v0
        with:
          repoToken: "${{ secrets.GITHUB_TOKEN }}"
          firebaseServiceAccount:
            "${{ secrets.FIREBASE_SERVICE_ACCOUNT_ROWY_TESTING }}"
          projectId: rowy-testing
          channelId: live
          target: rowybook

Error message

  The process '/usr/local/bin/npx' failed with exit code 1
  Error: The process '/usr/local/bin/npx' failed with exit code 1
  ***
    conclusion: 'failure',
    output: ***
      title: 'Deploy preview failed',
      summary: "Error: The process '/usr/local/bin/npx' failed with exit code 1"
    ***
  ***

Expected behavior

Actual behavior

yamankatby avatar Apr 12 '23 13:04 yamankatby

I have been getting this same error.

It looks like the culprit may be that the called action (FirebaseExtended/action-hosting-deploy@v0) doesn't enable webframeworks.

The following error is copied from the build_and_deploy action's output on the step that runs FirebaseExtended/action-hosting-deploy@v0.

Error: Cannot deploy a web framework to hosting because the experiment webframeworks is not enabled. To enable webframeworks run firebase experiments:enable webframeworks

MixMasterT avatar Apr 22 '23 02:04 MixMasterT

It looks like this works: add

  steps:
    - uses: FirebaseExtended/action-hosting-deploy@v0
       with:
          repoToken: '${{ secrets.GITHUB_TOKEN }}'
          firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_... }'
          ...
       env:
         FIREBASE_CLI_EXPERIMENTS: webframeworks

The last part, adding env with FIREBASE_CLI_EXPERIMENTS is what got me past this error.

Here is a helpful Stack Overflow link.

MixMasterT avatar Apr 23 '23 21:04 MixMasterT

Did you manage to fix this? @yamankatby

jeemercado avatar May 18 '23 05:05 jeemercado

I now have the same bug but with exit code 2...

Is there any update on the situation or should I open a new issue?

hyperlate avatar Jul 29 '23 11:07 hyperlate

I now have the same bug but with exit code 2...

Is there any update on the situation or should I open a new issue?

Add a firebaseToolsVersion: specify what tool version to use

jeemercado avatar Jul 29 '23 11:07 jeemercado

Which firebaseToolsVersion works?

odwrotnie avatar Oct 23 '23 17:10 odwrotnie

+1

sankaSanjeeva avatar Mar 16 '24 13:03 sankaSanjeeva