From 53ca96d9c62a8b79c83263ffc570efe12d32d577 Mon Sep 17 00:00:00 2001 From: Eddy Nguyen Date: Sat, 28 Feb 2026 21:49:38 +1100 Subject: [PATCH 1/9] Update runner node version --- .github/workflows/main.yml | 4 ++-- .github/workflows/pr.yml | 2 +- .github/workflows/release.yml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 26f15e868b..8befd2416d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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: @@ -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: diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 2099adb73c..001d03e8aa 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -21,7 +21,7 @@ jobs: with: npmTag: alpha buildScript: build - nodeVersion: 18 + nodeVersion: 24 secrets: githubToken: ${{ secrets.GITHUB_TOKEN }} npmToken: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e36a97d1f3..c065f3a70a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,7 +9,7 @@ jobs: uses: the-guild-org/shared-config/.github/workflows/release-stable.yml@main with: releaseScript: release - nodeVersion: 18 + nodeVersion: 24 secrets: githubToken: ${{ secrets.GITHUB_TOKEN }} npmToken: ${{ secrets.NPM_TOKEN }} From 7d7637923ce8c9207230236396f0f292c2d8c570 Mon Sep 17 00:00:00 2001 From: Eddy Nguyen Date: Sat, 28 Feb 2026 22:08:39 +1100 Subject: [PATCH 2/9] Ensure release from release.yml for packages --- .github/workflows/pr.yml | 10 ---------- .github/workflows/release.yml | 24 ++++++++++++++++++++++-- 2 files changed, 22 insertions(+), 12 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 001d03e8aa..36dacdfddf 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -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: 24 - secrets: - githubToken: ${{ secrets.GITHUB_TOKEN }} - npmToken: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c065f3a70a..e73725d894 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,12 +1,32 @@ name: release on: - push: + push: # for stable release + branches: + - main + + pull_request: # for snapshot release branches: - main jobs: - stable: + 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 + with: + npmTag: alpha + buildScript: build + nodeVersion: 24 + secrets: + githubToken: ${{ secrets.GITHUB_TOKEN }} + npmToken: ${{ secrets.NPM_TOKEN }} + + 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 From 924933a02fa90b4b07fd5caba70b353b2774c16f Mon Sep 17 00:00:00 2001 From: Eddy Nguyen Date: Sat, 28 Feb 2026 22:14:03 +1100 Subject: [PATCH 3/9] Test release --- .changeset/real-humans-notice.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/real-humans-notice.md diff --git a/.changeset/real-humans-notice.md b/.changeset/real-humans-notice.md new file mode 100644 index 0000000000..ecfe78ce24 --- /dev/null +++ b/.changeset/real-humans-notice.md @@ -0,0 +1,5 @@ +--- +'@graphql-codegen/near-operation-file-preset': patch +--- + +Test release From cf8f98a5b453b0eb2e1d9ae42f34909c34c947ac Mon Sep 17 00:00:00 2001 From: Eddy Nguyen Date: Sat, 28 Feb 2026 22:16:05 +1100 Subject: [PATCH 4/9] Test config --- .github/workflows/release.yml | 56 ++++++++++++++++--- .../presets/near-operation-file/package.json | 2 +- 2 files changed, 49 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e73725d894..2310f8b5ef 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,19 +8,59 @@ on: branches: - main +permissions: + id-token: write # allows ODIC publishing + contents: read + jobs: release-snapshot: + runs-on: ubuntu-24.04 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 - with: - npmTag: alpha - buildScript: build - nodeVersion: 24 - secrets: - githubToken: ${{ secrets.GITHUB_TOKEN }} - npmToken: ${{ secrets.NPM_TOKEN }} + # contents: read + steps: + - name: Check out repository + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: 24 + registry-url: 'https://registry.npmjs.org' + cache: yarn + cache-dependency-path: '**/yarn.lock' + + - run: yarn install --prefer-offline + + - name: Deploy snapshot + run: | + yarn changeset version --snapshot $RELEASE_TAG + yarn build + yarn changeset publish --tag alpha --no-git-tag + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + RELEASE_TAG: test-run${{ github.run_number }}-${{ github.run_attempt }} + + # - name: Release Snapshot + # uses: 'the-guild-org/changesets-snapshot-action@v0.0.3' + # with: + # tag: alpha + # prepareScript: 'yarn build' + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # GitHub Token + # NPM_TOKEN: ${{ secrets.NPM_TOKEN }} # NPM Token + + # uses: the-guild-org/shared-config/.github/workflows/release-snapshot.yml@main + # permissions: + # id-token: write # allows ODIC publishing + # with: + # npmTag: alpha + # buildScript: build + # nodeVersion: 24 + # secrets: + # githubToken: ${{ secrets.GITHUB_TOKEN }} + # npmToken: ${{ secrets.NPM_TOKEN }} # FIXME: eddeee888 Required because the workflows requires it release-stable: if: github.event_name == 'push' diff --git a/packages/presets/near-operation-file/package.json b/packages/presets/near-operation-file/package.json index 7192f6b60d..acb8bc5563 100644 --- a/packages/presets/near-operation-file/package.json +++ b/packages/presets/near-operation-file/package.json @@ -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", "directory": "packages/presets/near-operation-file" }, "license": "MIT", From 8a6338f6d5cf965441c566b2b09a9c34ae067e85 Mon Sep 17 00:00:00 2001 From: Eddy Nguyen Date: Mon, 2 Mar 2026 20:26:14 +1100 Subject: [PATCH 5/9] Test filename --- .github/workflows/{release.yml => release.yaml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{release.yml => release.yaml} (100%) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yaml similarity index 100% rename from .github/workflows/release.yml rename to .github/workflows/release.yaml From 1af816b01f37441ae8fd99b4ff5b0f104ef59c79 Mon Sep 17 00:00:00 2001 From: Eddy Nguyen Date: Mon, 2 Mar 2026 20:36:08 +1100 Subject: [PATCH 6/9] Test minimum config --- .github/workflows/release.yaml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 2310f8b5ef..5ec016677d 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -8,17 +8,13 @@ on: branches: - main -permissions: - id-token: write # allows ODIC publishing - contents: read - jobs: release-snapshot: runs-on: ubuntu-24.04 if: github.event_name == 'pull_request' - # permissions: - # id-token: write # allows ODIC publishing - # contents: read + permissions: + id-token: write # allows ODIC publishing + # contents: read steps: - name: Check out repository uses: actions/checkout@v4 From 12d5e1d797cb27476e2b08159f8d1514af5c3e4a Mon Sep 17 00:00:00 2001 From: Eddy Nguyen Date: Mon, 2 Mar 2026 20:42:25 +1100 Subject: [PATCH 7/9] Apply ideal config --- .github/workflows/release.yaml | 63 ++++++++-------------------------- 1 file changed, 14 insertions(+), 49 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 5ec016677d..0d592464ee 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,71 +1,36 @@ name: release on: - push: # for stable release + pull_request: # for snapshot release branches: - main - pull_request: # for snapshot release + push: # for stable release branches: - main jobs: release-snapshot: - runs-on: ubuntu-24.04 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 - # contents: read - steps: - - name: Check out repository - uses: actions/checkout@v4 - - - name: Set up Node.js - uses: actions/setup-node@v4 - with: - node-version: 24 - registry-url: 'https://registry.npmjs.org' - cache: yarn - cache-dependency-path: '**/yarn.lock' - - - run: yarn install --prefer-offline - - - name: Deploy snapshot - run: | - yarn changeset version --snapshot $RELEASE_TAG - yarn build - yarn changeset publish --tag alpha --no-git-tag - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - RELEASE_TAG: test-run${{ github.run_number }}-${{ github.run_attempt }} - - # - name: Release Snapshot - # uses: 'the-guild-org/changesets-snapshot-action@v0.0.3' - # with: - # tag: alpha - # prepareScript: 'yarn build' - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # GitHub Token - # NPM_TOKEN: ${{ secrets.NPM_TOKEN }} # NPM Token - - # uses: the-guild-org/shared-config/.github/workflows/release-snapshot.yml@main - # permissions: - # id-token: write # allows ODIC publishing - # with: - # npmTag: alpha - # buildScript: build - # nodeVersion: 24 - # secrets: - # githubToken: ${{ secrets.GITHUB_TOKEN }} - # npmToken: ${{ secrets.NPM_TOKEN }} # FIXME: eddeee888 Required because the workflows requires it + 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 + permissions: + id-token: write # allows ODIC publishing with: releaseScript: release nodeVersion: 24 secrets: githubToken: ${{ secrets.GITHUB_TOKEN }} - npmToken: ${{ secrets.NPM_TOKEN }} + npmToken: FILLER From 7d019225b04d09ad53a1cf5489371b4326e2e28c Mon Sep 17 00:00:00 2001 From: Eddy Nguyen Date: Mon, 2 Mar 2026 20:49:43 +1100 Subject: [PATCH 8/9] Avoid creating a release, as we only fix publish pipeline --- .changeset/real-humans-notice.md | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 .changeset/real-humans-notice.md diff --git a/.changeset/real-humans-notice.md b/.changeset/real-humans-notice.md deleted file mode 100644 index ecfe78ce24..0000000000 --- a/.changeset/real-humans-notice.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphql-codegen/near-operation-file-preset': patch ---- - -Test release From 676d348b8f05af5a4bc8e2cbc8f56578aa31680f Mon Sep 17 00:00:00 2001 From: Eddy Nguyen Date: Mon, 2 Mar 2026 20:51:28 +1100 Subject: [PATCH 9/9] Add comment for permissions --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 0d592464ee..13fdd4c432 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -14,7 +14,7 @@ jobs: uses: the-guild-org/shared-config/.github/workflows/release-snapshot.yml@main permissions: id-token: write # allows ODIC publishing - pull-requests: write + pull-requests: write # allows creating comment with alpha versions with: npmTag: alpha buildScript: build