@@ -27,10 +27,10 @@ jobs:
2727 max-parallel : 3
2828 steps :
2929 - uses : actions/checkout@v4
30- - uses : actions/setup-node@v4
31- name : Set up Node.js
30+ - uses : actions/setup-node@v4
3231 with :
3332 node-version-file : .nvmrc
33+ cache : yarn
3434 - name : Filter Networks
3535 id : filter_networks
3636 run : |
@@ -47,30 +47,30 @@ jobs:
4747 done
4848 echo "Match found: $MATCH"
4949 echo "::set-output name=continue::$MATCH"
50- - run : npm install --global yarn && yarn
51- name : Install dependencies
50+ - name : Install dependencies
5251 if : steps.filter_networks.outputs.continue == 'true'
53- - run : yarn build
54- name : Build core package
52+ run : yarn
53+ - name : Build core package
54+ if : steps.filter_networks.outputs.continue == 'true'
55+ run : yarn build
5556 working-directory : ./packages/core
57+ - name : Install Graph CLI
5658 if : steps.filter_networks.outputs.continue == 'true'
57- - run : yarn global add @graphprotocol/graph-cli@0.71.2
58- name : Install Graph CLI
59+ run : yarn global add @graphprotocol/graph-cli@0.71.2
60+ - name : Authenticate Graph CLI
5961 if : steps.filter_networks.outputs.continue == 'true'
60- - run : graph auth --studio ${API_KEY}
61- name : Authenticate Graph CLI
62+ run : graph auth --studio ${API_KEY}
6263 env :
6364 API_KEY : ${{ secrets.HP_GRAPH_API_KEY }}
65+ - name : Generate and build Subgraph
6466 if : steps.filter_networks.outputs.continue == 'true'
65- - run : yarn generate && yarn build
66- name : Generate and build Subgraph
67+ run : yarn generate && yarn build
6768 working-directory : ./packages/sdk/typescript/subgraph
6869 env :
6970 NETWORK : ${{ matrix.network.name }}
71+ - name : Deploy Subgraph
7072 if : steps.filter_networks.outputs.continue == 'true'
71- - run : graph deploy --studio ${NETWORK} -l ${{ github.event.inputs.label }}
72- name : Deploy Subgraph
73+ run : graph deploy --studio ${NETWORK} -l ${{ github.event.inputs.label }}
7374 working-directory : ./packages/sdk/typescript/subgraph
7475 env :
7576 NETWORK : ${{ matrix.network.name }}
76- if : steps.filter_networks.outputs.continue == 'true'
0 commit comments