Skip to content

Commit 4aa758d

Browse files
committed
ci: fix schema generation on release
1 parent 6d57630 commit 4aa758d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/upload-schema-artifact.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,10 @@ jobs:
6767
command: |
6868
npm run wp-env start -- --update ${{ secrets.ACTIONS_STEP_DEBUG && '--debug' || '' }}
6969
70-
- name: Generate the Static Schema
70+
- name: Generate GraphQL schema
7171
run: |
72-
cd /tmp/wordpress/
73-
# Output: /tmp/schema.graphql
74-
wp graphql generate-static-schema
72+
npm run wp-env -- run cli --env-cwd=wp-content/plugins/wp-graphql-gravity-forms wp graphql generate-static-schema --output=tests/_output/schema.graphql
73+
echo "Schema generated: $(wc -l < tests/_output/schema.graphql) lines"
7574
7675
- name: Upload schema as release artifact
7776
uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # v2.5.0

0 commit comments

Comments
 (0)