For any of the subgraph: blocks
as [subgraph]
-
Run the
cd subgraphs/[subgraph]
command to move to the subgraph directory. -
Run the
yarn codegen
command to prepare the TypeScript sources for the GraphQL (generated/*). -
Run the
yarn build
command to build the subgraph, and check compilation errors before deploying. -
Run
graph auth --product hosted-service '<ACCESS_TOKEN>'
-
Deploy via
yarn deploy
.