Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 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/real-humans-notice.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphql-codegen/near-operation-file-preset': patch
---

Test release
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
- name: Setup env
uses: the-guild-org/shared-config/setup@main
with:
nodeVersion: 18
nodeVersion: 24
- name: Build
run: yarn build
env:
Expand All @@ -63,7 +63,7 @@ jobs:
- name: Setup env
uses: the-guild-org/shared-config/setup@main
with:
nodeVersion: 18
nodeVersion: 24
- name: Build
run: yarn build
env:
Expand Down
10 changes: 0 additions & 10 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,3 @@ jobs:
if: ${{ github.event.pull_request.title != 'Upcoming Release Changes' }}
secrets:
githubToken: ${{ secrets.GITHUB_TOKEN }}

release:
uses: the-guild-org/shared-config/.github/workflows/release-snapshot.yml@main
with:
npmTag: alpha
buildScript: build
nodeVersion: 18
secrets:
githubToken: ${{ secrets.GITHUB_TOKEN }}
npmToken: ${{ secrets.NPM_TOKEN }}
36 changes: 36 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: release
on:
pull_request: # for snapshot release
branches:
- main

push: # for stable release
branches:
- main

jobs:
release-snapshot:
if: github.event_name == 'pull_request'
uses: the-guild-org/shared-config/.github/workflows/release-snapshot.yml@main
permissions:
id-token: write # allows ODIC publishing
pull-requests: write
with:
npmTag: alpha
buildScript: build
nodeVersion: 24
secrets:
githubToken: ${{ secrets.GITHUB_TOKEN }}
npmToken: FILLER

release-stable:
if: github.event_name == 'push'
uses: the-guild-org/shared-config/.github/workflows/release-stable.yml@main
permissions:
id-token: write # allows ODIC publishing
with:
releaseScript: release
nodeVersion: 24
secrets:
githubToken: ${{ secrets.GITHUB_TOKEN }}
npmToken: FILLER
15 changes: 0 additions & 15 deletions .github/workflows/release.yml

This file was deleted.

2 changes: 1 addition & 1 deletion packages/presets/near-operation-file/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "GraphQL Code Generator preset for generating operation code near the operation file",
"repository": {
"type": "git",
"url": "https://github.com/dotansimha/graphql-code-generator-community.git",
"url": "git+https://github.com/dotansimha/graphql-code-generator-community.git",
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a warning when publishing saying we should add git+, so I apply that suggestion here.

"directory": "packages/presets/near-operation-file"
},
"license": "MIT",
Expand Down
Loading