Skip to content

Commit

Permalink
Upgrade graphql codegen dependencies (#11)
Browse files Browse the repository at this point in the history
* Upgrade graphql codegen dependencies

Now need to specify user-agent header to introspect github api.

* Bump to node 16
  • Loading branch information
TrySound committed Jun 5, 2023
1 parent a557613 commit b4fe75e
Show file tree
Hide file tree
Showing 5 changed files with 3,685 additions and 5,244 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "14.x"
node-version: "16.x"

- name: Get yarn cache directory path
id: yarn-cache-dir-path
Expand Down
1 change: 1 addition & 0 deletions codegen.yml
Expand Up @@ -3,6 +3,7 @@ schema:
https://api.github.com/graphql:
headers:
Authorization: Bearer ${GITHUB_INTROSPECTION_TOKEN}
User-Agent: node.js
generates:
./src/__generated__/index.ts:
config:
Expand Down
10 changes: 5 additions & 5 deletions package.json
Expand Up @@ -30,15 +30,15 @@
"dependencies": {
"classnames": "^2.3.1",
"graphql": "^15.5.0",
"graphql-request": "^3.4.0",
"graphql-request": "^6.1.0",
"graphql-tag": "^2.11.0",
"gray-matter": "^4.0.2"
},
"devDependencies": {
"@graphql-codegen/cli": "^1.21.3",
"@graphql-codegen/typescript": "^1.21.1",
"@graphql-codegen/typescript-graphql-request": "^3.1.0",
"@graphql-codegen/typescript-operations": "^1.17.15",
"@graphql-codegen/cli": "^4.0.1",
"@graphql-codegen/typescript": "^4.0.0",
"@graphql-codegen/typescript-graphql-request": "^5.0.0",
"@graphql-codegen/typescript-operations": "^4.0.0",
"@types/jest": "^29.5.2",
"dotenv-flow": "^3.2.0",
"eslint": "^7.23.0",
Expand Down

0 comments on commit b4fe75e

Please sign in to comment.