HubSpot / hubspot-cli

A CLI for HubSpot
https://developers.hubspot.com
Other
154 stars 60 forks source link

Version 5.3.0 throw an error on github action #1134

Closed Trosss closed 2 months ago

Trosss commented 2 months ago

Description and Context

When running npx --package=@huspot/cli@latest on a github action it throws an error: /usr/bin/env: ‘node --no-deprecation’: No such file or directory

Steps to reproduce

Create a github action and add the following step:

 - name: Deploy
   env:
      HUBSPOT_PORTAL_ID: <hubspot_portal_id>
      HUBSPOT_PERSONAL_ACCESS_KEY: <hubspot_personal_access_key>
   run: |
      npx --yes --package=@hubspot/cli@latest --call='hs upload <source> <destination> --use-env'
   shell: bash

Expected behavior

It shouldn't throw an error

cosmingeorge8 commented 2 months ago

I am facing the same issue, running HubSpot/hubspot-cms-deploy-action@v1.7.

brandenrodgers commented 2 months ago

Thank you all for surfacing this. We just releases a patch fix for this (5.3.1) that removes the --no-deprecation flag. I'm going to close this issue, but feel free to re-open it if you're still having issues.