Skip to content

Commit 53c28e1

Browse files
authored
Don't regenerate gatsby after changing config (#287)
don't regenerate gatsby after changing config
1 parent 481f590 commit 53c28e1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/deploy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
node-version: '15'
4242
- run: npm ci
4343
- run: npm run build
44-
- run: npm run build:docs
44+
- run: npm run generate-clients
4545
- run: 'sed -i -e "s|Prefix: \"\"|Prefix: \"/execution-apis\"|g" build/docs/gatsby/gatsby-config.js'
4646
- run: 'sed -i -e "s|/api|api|g" build/docs/gatsby/src/pages/index.tsx'
4747
- run: npm run build:docs

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
"scripts": {
88
"build": "npm run build:spec",
99
"build:spec": "node scripts/build.js",
10-
"build:docs": "mkdir -p build && npm run generate-clients && cd build/docs/gatsby && npm install --legacy-peer-deps && gatsby build --prefix-paths",
10+
"build:docs": "cd build/docs/gatsby && npm install --legacy-peer-deps && gatsby build --prefix-paths",
1111
"lint": "node scripts/build.js && node scripts/validate.js && node scripts/graphql-validate.js",
1212
"clean": "rm -rf build && mkdir -p build",
13-
"generate-clients": "open-rpc-generator generate -c open-rpc-generator-config.json",
13+
"generate-clients": "mkdir -p build && open-rpc-generator generate -c open-rpc-generator-config.json",
1414
"graphql:schema": "node scripts/graphql.js",
1515
"graphql:validate": "node scripts/graphql-validate.js"
1616
},

0 commit comments

Comments
 (0)