We are using the HubSpot CMS Deploy Action and have been doing so for some time now. The action runs npm install and previously it has thrown a warning because we don’t have a package.json file. This has not been an issue until today when it instead throws an error for not having a pachage.json file, and this breaks the deployment. We can’t see that anything has changed in the action, the version of node in the virtual environment, or from our side, more than we were trying to push some chnages in out HTML and CSS. Any thoughts on why it does this? Anyone else who has experienced, or are experiencing, the same thing?
Running into the same problem. For whatever reason, the Github Action is running a version of the HubSpot CLI that we don’t have specified in our package.json. No changes were made to our project, but I noticed an interesting message with the first build that failed this morning (see screenshot). So, it seems that some kind of change might have been implemented on the Github Actions side? I did upgrade to the latest HubSpot CLI and still nothing. It’s still trying to run the same command specifying “@3.0.4”. With NPM, I upgraded to the latest CLI version of 3.0.9, so I’d imagine the CLI action here should be running the latest version, which right now is 3.0.9: hubspot-cms-deploy-action/action.yml at main · HubSpot/hubspot-cms-deploy-action · GitHub. I haven’t found out yet why it’s running the same old version command still. Also, I am running the latest version of the Github Action.
After some more digging, I opened up an issue in Github with their project. I think it’s because of a potential upgrade to Node/NPM that Github Actions use and is breaking things? https://github.com/HubSpot/hubspot-cms-deploy-action/issues/15#issuecomment-985120882
Yes, actions/virtual-environments updated from node 14 to 16 (link). This breaks the hubspot delpoy action, great that you added an issue!
Hey all!
I made sure to flag this with the team. Thanks for reporting and creating the issue!
Hello again, friends. A new version has been published. Should be reflected on that issue that was reported as well. Please feel free to let us know if it is still an issue!
