Ensure publish job has correct status on fail (#61645)
This ensures we show the job as failed correctly when any of the
packages didn't publish successfully.
x-ref:
https://github.com/vercel/next.js/actions/runs/7777481701/job/21205867173
Closes NEXT-2355