33 workflow_dispatch :
44 inputs :
55 label :
6- description : ' New version label'
6+ description : " New version label"
77 required : true
88 networks :
9- description : ' Comma-separated list of networks to deploy'
9+ description : " Comma-separated list of networks to deploy"
1010 required : true
1111
1212jobs :
@@ -48,10 +48,10 @@ jobs:
4848 echo "::set-output name=continue::$MATCH"
4949 - name : Install dependencies
5050 if : steps.filter_networks.outputs.continue == 'true'
51- run : yarn install --immutable
52- - name : Build core package
51+ run : yarn workspaces focus @tools/subgraph
52+ - name : Build packages (scoped)
5353 if : steps.filter_networks.outputs.continue == 'true'
54- run : yarn workspace @human-protocol/core build
54+ run : yarn workspaces foreach -Rpt --from @tools/subgraph run build
5555 - name : Generate and build Subgraph
5656 if : steps.filter_networks.outputs.continue == 'true'
5757 run : yarn generate && yarn build
@@ -61,12 +61,12 @@ jobs:
6161 - name : Authenticate & Deploy
6262 if : steps.filter_networks.outputs.continue == 'true'
6363 env :
64- API_KEY : ${{ secrets.HP_GRAPH_API_KEY }}
65- NETWORK : ${{ matrix.network.name }}
66- LABEL : ${{ github.event.inputs.label }}
64+ API_KEY : ${{ secrets.HP_GRAPH_API_KEY }}
65+ NETWORK : ${{ matrix.network.name }}
66+ LABEL : ${{ github.event.inputs.label }}
6767 working-directory : ./packages/sdk/typescript/subgraph
6868 run : |
6969 yarn dlx @graphprotocol/graph-cli@0.71.2 \
7070 auth --studio "$API_KEY"
7171 yarn dlx @graphprotocol/graph-cli@0.71.2 \
72- deploy --studio ${NETWORK} -l ${LABEL}
72+ deploy --studio ${NETWORK} -l ${LABEL}
0 commit comments