GitHub Actions failure getAccountConfig(...)' as it is null.

We use the GitHub - HubSpot/hubspot-cms-deploy-action: GitHub Action to deploy HubSpot CMS projects · GitHub to deploy our projects directly from GitHub. Today this started failing.

We have not changed and GitHub workflows or other nodeJs build scripts. The error is

A hubspot.config.yml file could not be found
Error: Cannot destructure property 'auth' of 'getAccountConfig(...)' as it is null.
Error: Process completed with exit code 1.

The hubspot.config.yml has never been a problem before and is ignored in the .gitignore.

Currently we use

uses: actions/setup-node@v3with: node-version: 18.x

and have bumped to setup-nodev4 and node-version: 20.x to see if this would resolve it but it hasn’t.

This is fixed now as per 5.1.0 looks for hubspot.config.yml despite --use-env flag. · Issue #970 · HubSpot/hubspot-cli · GitHub