Skip to content

Commit 928c0bc

Browse files
authored
Initial commit
0 parents  commit 928c0bc

34 files changed

+686
-0
lines changed

.env.example

Whitespace-only changes.

.github/workflows/apollo-studio.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Apollo Studio
2+
on: [push]
3+
# https://www.apollographql.com/docs/rover/ci-cd/#full-example-1
4+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
5+
jobs:
6+
# This workflow contains a single job called "build"
7+
build:
8+
# The type of runner that the job will run on
9+
runs-on: ubuntu-latest
10+
# https://docs.github.com/en/actions/reference/environments
11+
environment: apollo
12+
# https://docs.github.com/en/actions/reference/encrypted-secrets
13+
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstepsenv
14+
env:
15+
APOLLO_KEY: ${{ secrets.APOLLO_KEY }}
16+
APOLLO_VCS_COMMIT: ${{ github.event.pull_request.head.sha }}
17+
# Steps represent a sequence of tasks that will be executed as part of the job
18+
steps:
19+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
20+
- uses: actions/checkout@v2
21+
- name: Install Rover
22+
run: |
23+
curl -sSL https://rover.apollo.dev/nix/v0.1.0 | sh
24+
# Add Rover to the $GITHUB_PATH so it can be used in another step
25+
# https://docs.github.com/en/actions/reference/workflow-commands-for-github-actions#adding-a-system-path
26+
echo "$HOME/.rover/bin" >> $GITHUB_PATH
27+
- name: Run check against prod
28+
run: |
29+
rover graph publish TEMPLATE@current --schema ./schema.graphql
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: GraphQL Inspector
2+
3+
on: [push]
4+
5+
# https://www.graphql-inspector.com/docs/products/action
6+
jobs:
7+
test:
8+
name: Check Schema
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@master
14+
15+
- uses: kamilkisiela/graphql-inspector@master
16+
with:
17+
schema: "master:schema.graphql"
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Github Package
2+
# https://dev.to/cloudx/publish-an-npm-to-github-packages-3pa8
3+
4+
on:
5+
release:
6+
types: [created]
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
packages: write
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: actions/setup-node@v2
16+
with:
17+
node-version: 16
18+
- run: npm install
19+
- run: npm run build
20+
- run: |
21+
echo @lexacode:https://npm.pkg.github.com/ > build/.npmrc
22+
echo '//npm.pkg.github.com/:_authToken=${NPM_TOKEN}' >> build/.npmrc
23+
- run: npm publish
24+
working-directory: ./build
25+
env:
26+
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/vercel.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Vercel
2+
on: [push]
3+
jobs:
4+
deploy:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v2
8+
with:
9+
submodules: recursiv
10+
token: ${{ secrets.PTA }}
11+
- uses: amondnet/vercel-action@v20
12+
with:
13+
vercel-token: ${{ secrets.VERCEL_ACCESS_TOKEN }} # Required
14+
github-token: ${{ secrets.GITHUB_TOKEN }} #Optional
15+
#vercel-args: '--prod' #Optional
16+
vercel-org-id: ${{ secrets.VERCEL_ORG_ID}} #Required
17+
scope: ${{ secrets.VERCEL_ORG_ID }}
18+
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID}} #Required

.gitignore

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
.env
2+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
3+
4+
# dependencies
5+
node_modules
6+
.next
7+
dist
8+
/.pnp
9+
.pnp.js
10+
11+
# testing
12+
/coverage
13+
14+
# next.js
15+
/.next/
16+
/out/
17+
18+
# production
19+
/build
20+
21+
# misc
22+
.DS_Store
23+
*.pem
24+
25+
# debug
26+
npm-debug.log*
27+
yarn-debug.log*
28+
yarn-error.log*
29+
pnpm-lock.yaml
30+
*/.yarn-lock.yaml
31+
32+
# local env files
33+
.env.local
34+
.env.development.local
35+
.env.test.local
36+
.env.production.local
37+
38+
# vercel
39+
.vercel
40+
41+
# typescript
42+
*.tsbuildinfo

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/examples/

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@graphql-api:registry = https://npm.pkg.github.com

.prettierignore

Whitespace-only changes.

.prettierrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{ "tabWidth": 2, "useTabs": false }

0 commit comments

Comments
 (0)