It would be really nice if following page Trusted publishers contained a warning note in GitHub section, just before code sample, to check node version on pipeline agent, because GitHub Hosted agents don't have 11.5 version, therefor the example does not work out-of-box and requires explicit latest CLI installation.