Skip to content

Commit

Permalink
goldsky versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
mmd-afegbua committed Jun 18, 2024
1 parent ff19f4d commit a47ad10
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/subgraph/tasks/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,11 @@ deploy_to_goldsky() {
local network="$1"
# TODO: use tagging?

local subgraphName="protocol-$DEPLOYMENT_ENV-$network/1.0.0"
#Get subgraph version from package.json
PACKAGE_JSON_PATH="package.json"
VERSION_LABEL=$($JQ -r '.version' $PACKAGE_JSON_PATH)

local subgraphName="protocol-$DEPLOYMENT_ENV-$network/$VERSION_LABEL"

# Note: when using Graph CLI to deploy, it implicitly triggers build too, but Goldsky CLI doesn't, so we do it explicitly.
$GRAPH_CLI build
Expand Down

0 comments on commit a47ad10

Please sign in to comment.