Deploy problem - non-zero return code(...) You are using Composer 2

thanks for this @strarsis, at the end I was able to finally deploy following this > Deploy failed - Composer

but reading your msg, I am wondering if this is a way to update bedrock?
I was thinking to update trellis and bedrock at one point today (even if I started this project just a couple of weeks ago, so they are not very out of date), but then I realised that I don’t know what it the best way to do this.

can I use this workflow to update bedrock some of my old trellis/bedrock websites?