Skip to content

Commit 4b7968b

Browse files
committed
fix: ci for subgraphs - adjust build step
1 parent 16e80f2 commit 4b7968b

2 files changed

Lines changed: 6 additions & 8 deletions

File tree

.github/workflows/thegraph_dev_deploy.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,12 @@ jobs:
4545
with:
4646
node-version-file: '.nvmrc'
4747

48-
- name: Install graph-cli & dependencies
48+
- name: Install dependencies & build subgraphs
4949
run: |
5050
cd subgraph
5151
yarn install
52-
53-
- name: Build Subgraph
54-
run: yarn codegen && yarn build
52+
yarn codegen
53+
yarn build
5554
5655
- name: Authenticate to Subgraph Studio
5756
run: graph auth --studio ${{ secrets.THEGRAPH_DEPLOY_API_KEY }}

.github/workflows/thegraph_prod_deploy.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,12 @@ jobs:
5454
with:
5555
node-version-file: '.nvmrc'
5656

57-
- name: Install graph-cli & dependencies
57+
- name: Install dependencies & build subgraphs
5858
run: |
5959
cd subgraph
6060
yarn install
61-
62-
- name: Build Subgraph
63-
run: yarn codegen && yarn build
61+
yarn codegen
62+
yarn build
6463
6564
- name: Authenticate to Subgraph Studio
6665
run: graph auth --studio ${{ secrets.THEGRAPH_DEPLOY_API_KEY }}

0 commit comments

Comments
 (0)