jsmrcaga / action-netlify-deploy

MIT License
102 stars 32 forks source link

Error: Process completed with exit code 130 - Issue with Netlify deployment #52

Closed rbneem closed 11 months ago

rbneem commented 1 year ago

Since yesterday we are seeing all our deployments to Netlify are failing in GitHub actions with the above error.

I see we didn't update workflows the same workflow was used 2 days back and all builds are successful, I re-verified all the env var's Site ID and Netlify Access Token all look good but still no luck.

The error message is not at all helpful in this case. Can anyone help me out here? Screenshot 2023-08-22 191449

jsmrcaga commented 1 year ago

Hello @rbneem, sadly I have not been able to find any sources indicating what this error might be. The closest I've found is this question on the forums but does not seem completely related.

I know @tpluscode has been having some issues as well. This action uses the pre-installed netlify cli on GitHub runners, so it was probably caused by an update.

Could you try deploying this "from your machine" after updating the CLI and see if you see any difference ? I'm sorry I can't be of any more help

Nyeova commented 1 year ago

Having the same issue here.... any temporary workaround for a manual deployment?

rbneem commented 1 year ago

As we are hosting via Netlify, I have enabled Netlify build & deploy for now till we find the issue. We have also reached Netlify team on the same. Will keep you posted if found any resolution.

tpluscode commented 11 months ago

Oh, I just found that I can no longer deploy. exit code 130. This is not the issue I reported earlier.

@rbneem any news from Netlify on the matter?

tpluscode commented 11 months ago

Ah, I know what the problem is!

When I tried deploying locally I got this

> npx netlify-cli deploy --dir packages/demo/dist -a {TOKEN} -s {SITE_ID}

We've detected multiple sites inside your repository
? Select the site you want to work with (Use arrow keys or type to search)
❯ shape-to-query  packages/demo  --filter shape-to-query 
  @hydrofoil/shape-to-query  packages/shape-to-query  --filter @hydrofoil/shape-to-query 

Code 130 is apparently returned when the console tried to go interactive. @Nyeova @rbneem are you also deploying monorepos?

From netlify-cli deploy--help

--filter For monorepos, specify the name of the application to run the command in

It might be a bug that --dir has no effect. Adding --filter instead does the trick and my app got deployed.

tpluscode commented 11 months ago

Correction, --dir is still needed apparently. Dunno why it worked locally without it but I had to keep it in the job...

https://github.com/hypermedia-app/shape-to-query/actions/runs/6470007726/job/17565237973?pr=230