graphprotocol / graph-client

The Graph library for building GraphQL-based dapps in a decentralized way.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CLI exits with 0 even when graph deploy has failed

jaybuidl opened this issue · comments

Package

@graphprotocol/graph-cli@0.64.0

Expected behaviour

If graph deploy fails, it should exit with 1, so that the error can be reported or handled in a CI context (e.g. Github workflow)

Actual behaviour

If graph deploy fails, it should exit with 0.

Steps to reproduce

  1. Run graph deploy --studio -l existingLabel
  2. Run echo $?

image

Hi!
Are you looking for graph-cli? Because this repo belongs to graph-client.

Indeed! Just noticed that this is @graphprotocol/client-cli not @graphprotocol/cli. My bad!