Skip to content

Commit 9688b09

Browse files
committed
Register schema with Apollo Studio
1 parent d3f052f commit 9688b09

125 files changed

Lines changed: 3089 additions & 123 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,24 @@ jobs:
124124
run: yarn chromatic --auto-accept-changes --skip 'dependabot/**' --exit-once-uploaded
125125
env:
126126
CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
127+
128+
apollo-schema:
129+
runs-on: ubuntu-latest
130+
steps:
131+
- uses: actions/checkout@v2
132+
- uses: actions/setup-node@v2
133+
with:
134+
node-version: 15
135+
- name: 📦 Install Dependencies
136+
run: yarn install --immutable --immutable-cache
137+
- name: 📈 Run GraphQL Codegen
138+
run: |
139+
yarn gql
140+
- name: 📈🔼 Register Schema with Apollo Studio
141+
run: yarn apollo service:push --localSchemaFile=./graphql/schema.graphql --key=$APOLLO_STUDIO_KEY --graph=MPDX --variant=${GITHUB_REF##*/}
142+
env:
143+
APOLLO_STUDIO_KEY: ${{ secrets.APOLLO_STUDIO_KEY }}
144+
127145
yarn-check-cache:
128146
runs-on: ubuntu-latest
129147
steps:
@@ -137,7 +155,7 @@ jobs:
137155
# onesky-upload:
138156
# runs-on: ubuntu-latest
139157
# needs: [test, eslint, typescript, prettier]
140-
# if: github.event_name == 'push' && github.ref == 'refs/heads/master'
158+
# if: github.event_name == 'push' && github.ref == 'refs/heads/main'
141159
# steps:
142160
# - uses: actions/checkout@v2
143161
# - uses: actions/setup-node@v2

.pnp.js

Lines changed: 1630 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
355 KB
Binary file not shown.
126 KB
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)