Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/@graphql-codegen_cli-10848-dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphql-codegen/cli": patch
---
dependencies updates:
- Updated dependency [`@graphql-codegen/client-preset@workspace:^` ↗︎](https://www.npmjs.com/package/@graphql-codegen/client-preset/v/workspace:^) (from `^6.0.0`, in `dependencies`)
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphql-codegen/client-preset": patch
---
dependencies updates:
- Updated dependency [`@graphql-codegen/gql-tag-operations@^6.0.0` ↗︎](https://www.npmjs.com/package/@graphql-codegen/gql-tag-operations/v/6.0.0) (from `6.0.0`, in `dependencies`)
5 changes: 5 additions & 0 deletions .changeset/legal-cobras-hang.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphql-codegen/client-preset': patch
---

Fix package pinning
34 changes: 2 additions & 32 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,41 +4,11 @@ on:
branches:
- master

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: write
id-token: write
pull-requests: write

jobs:
dependencies:
uses: the-guild-org/shared-config/.github/workflows/changesets-dependencies.yaml@f4eea983237a44bb0ca19c3348dacbfdfcdbec23 # main
if: ${{ github.event.pull_request.title != 'Upcoming Release Changes' }}
secrets:
githubToken: ${{ secrets.GITHUB_TOKEN }}

alpha:
uses: the-guild-org/shared-config/.github/workflows/release-snapshot.yml@f4eea983237a44bb0ca19c3348dacbfdfcdbec23 # main
if: ${{ github.event.pull_request.title != 'Upcoming Release Changes' }}
with:
npmTag: alpha
buildScript: build
packageManager: pnpm
secrets:
githubToken: ${{ secrets.GITHUB_TOKEN }}
npmToken: ${{ secrets.NPM_TOKEN }}

release-candidate:
uses: the-guild-org/shared-config/.github/workflows/release-snapshot.yml@f4eea983237a44bb0ca19c3348dacbfdfcdbec23 # main
if: ${{ github.event.pull_request.title == 'Upcoming Release Changes' }}
with:
npmTag: rc
restoreDeletedChangesets: true
buildScript: build
packageManager: pnpm
permissions:
contents: write # allows modifying changeset files
secrets:
githubToken: ${{ secrets.GITHUB_TOKEN }}
npmToken: ${{ secrets.NPM_TOKEN }}
37 changes: 33 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: release
on:
push:
pull_request: # for snapshot release
branches:
- master

push: # for stable release
branches:
- master

Expand All @@ -9,11 +13,36 @@ concurrency:
cancel-in-progress: true

jobs:
stable:
release-snapshot:
if:
github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name ==
github.repository
uses: the-guild-org/shared-config/.github/workflows/release-snapshot.yml@1c4632ccc198d4c9b34d9e6b3d556c6f245b4e69
permissions:
id-token: write # allows OIDC publishing
pull-requests: write # allows creating comment with alpha versions
with:
nodeVersion: 24
npmTag: alpha
packageManager: pnpm
buildScript: build
secrets:
githubToken: ${{ secrets.GITHUB_TOKEN }}

release-stable:
if:
github.event_name == 'push' && github.event.pull_request.head.repo.full_name ==
github.repository
uses: the-guild-org/shared-config/.github/workflows/release-stable.yml@f4eea983237a44bb0ca19c3348dacbfdfcdbec23 # main
permissions:
id-token: write # allows OIDC publishing
pull-requests: write # allows creating Version Packages PR
contents: write # allows modifying changeset files
with:
releaseScript: release
nodeVersion: 24
npmTag: alpha
packageManager: pnpm
buildScript: build
releaseScript: release
secrets:
githubToken: ${{ secrets.GITHUB_TOKEN }}
npmToken: ${{ secrets.NPM_TOKEN }}
4 changes: 2 additions & 2 deletions packages/graphql-codegen-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "module",
"repository": {
"type": "git",
"url": "https://github.com/dotansimha/graphql-code-generator.git",
"url": "git+https://github.com/dotansimha/graphql-code-generator.git",
"directory": "packages/graphql-codegen-cli"
},
"homepage": "https://github.com/dotansimha/graphql-code-generator#readme",
Expand Down Expand Up @@ -77,7 +77,7 @@
"@babel/generator": "^7.18.13",
"@babel/template": "^7.18.10",
"@babel/types": "^7.18.13",
"@graphql-codegen/client-preset": "^6.0.0",
"@graphql-codegen/client-preset": "workspace:^",
"@graphql-codegen/core": "^6.0.0",
"@graphql-codegen/plugin-helpers": "^7.0.0",
"@graphql-tools/apollo-engine-loader": "^8.0.28",
Expand Down
4 changes: 2 additions & 2 deletions packages/presets/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "GraphQL Code Generator preset for client.",
"repository": {
"type": "git",
"url": "https://github.com/dotansimha/graphql-code-generator.git",
"url": "git+https://github.com/dotansimha/graphql-code-generator.git",
"directory": "packages/presets/client"
},
"license": "MIT",
Expand Down Expand Up @@ -49,7 +49,7 @@
"@babel/helper-plugin-utils": "^7.20.2",
"@babel/template": "^7.20.7",
"@graphql-codegen/add": "^7.0.0",
"@graphql-codegen/gql-tag-operations": "6.0.0",
"@graphql-codegen/gql-tag-operations": "^6.0.0",
"@graphql-codegen/plugin-helpers": "^7.0.0",
"@graphql-codegen/typed-document-node": "^7.0.0",
"@graphql-codegen/typescript": "^6.0.0",
Expand Down
113 changes: 11 additions & 102 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"@graphql-codegen/add": "7.0.0",
"@graphql-codegen/c-sharp": "6.0.1",
"@graphql-codegen/c-sharp-operations": "4.0.1",
"@graphql-codegen/cli": "7.0.0",
"@graphql-codegen/client-preset": "6.0.0",
"@graphql-codegen/cli": "workspace:*",
"@graphql-codegen/client-preset": "workspace:*",
"@graphql-codegen/core": "6.0.0",
"@graphql-codegen/flow": "3.0.1",
"@graphql-codegen/flow-operations": "3.0.2",
Expand Down
Loading