Github action to compare local graphql schema with prod graphql schema for notifying breaking changes.
- name: Validate local grpahql schema against prod graphql schema
uses: sittercity/github-actions/validate-graphql-schema@v1
with:
github-token: ${{ env.BUNDLER_ACCESS_TOKEN }}
schema: 'path for schema.graphql file'
endpoint: 'URL for graphql endpoint'
Run npm run build
before you merge as it will pick up on the dist/index.js
that is compiled. This should be automated in the future.