Closed Sarnith closed 1 year ago
Hello Sarnith,
Please refer to https://cloud.google.com/functions/docs/release-notes#April_11_2023 for details on how to solve your current issue.
In summary, a new breaking change was added to the node js builders such that if the function author has a build
in their package.json the builder will use npm run build
to build the function source. In your case the builder is trying to run tsc -b tsconfig.json1
as specified in your package.json. The link provided has the info needed to opt out from this behavior.
Hope this helps!
Closing for now, but feel free to reopen if this issue persists and I will assist you further.
I have my cloud function written in typescript and I have configured my CI CD pipelines in Azure devops.
Below is my Package.json
This is my Azure pipelines.yml file
And From the build folder, I am executing the following command
gcloud functions deploy $(DEV_APP_ID) --runtime nodejs14 --trigger-http --entry-point app
Though my code is already compiled into js, the cloud build logs, i can see that it is trying to compile the code again and failing everytime.So What is the proper way to configure CI/CD pipelines for GCF?