Skip to content

Commit 8836519

Browse files
authored
Merge pull request #4387 from danielzsh/typegen
update config
2 parents 1289f0b + e34ff39 commit 8836519

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535

3636
# hack to build graphql types
3737
- name: Build GraphQL types
38-
run: grep -m 1 "Generating GraphQL and TypeScript types" <(yarn develop) | true
38+
run: yarn build
3939
env:
4040
NODE_OPTIONS: --max-old-space-size=4096
4141

gatsby-config.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -149,5 +149,7 @@ module.exports = {
149149
flags,
150150
siteMetadata,
151151
plugins,
152-
graphqlTypegen: true,
152+
graphqlTypegen: {
153+
generateOnBuild: true,
154+
},
153155
};

0 commit comments

Comments
 (0)