action-hosting-deploy
action-hosting-deploy copied to clipboard
[BUG] The process '/usr/local/bin/npx' failed with exit code 1
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
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
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.
Did you manage to fix this? @yamankatby
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?
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
Which firebaseToolsVersion
works?
+1