Recently our ability to deploy our functions, both in our dev and prod projects, ceased. When I attempt to deploy any function, or, via cloudbuild trigger, deploy all functions, I get an error:
Build failed: > functions@0.1.0 build
> yarn build-deps && tsc
sh: 1: yarn: not found; Error ID: 1a2262f3
functions@0.1.0 is the package in our repo. yarn build-deps && tsc
is our package.json script called "build" .
npm build
?There was a breaking change where deploying would cause the package.json build script to be run. And apparently yarn is not installed by default.
https://cloud.google.com/functions/docs/release-notes#April_11_2023