Heroku not found in Github action

I’m configuring heroku-deploy so that I can push to Heroku as part of my CI build in Github Actions. My build fails because heroku is not found. My understanding is that the heroku-cli is preinstalled.

/bin/sh: 1: heroku: not found
Error: Error: Command failed: heroku login

I uninstalled heroku-cli then installed heroku globally via npm. That didn’t work. Then I tried adding heroku to my package.json. That didn’t work.

I don’t have these problems locally.

Any suggestions are greatly appreciated. Thank you.

Someone mentioned that heroku CLI may be missing because I’m using this container, container: node:10.18-jessie. They suggested that I install it using this command.

 name: Install Heroku Cli
  run: curl https://cli-assets.heroku.com/install-ubuntu.sh | sh

That worked.