Skip to content

Commit 98e9d8c

Browse files
authored
Fix releases to use trusted publishing (OIDC) (#1379)
* Update runner node version * Ensure release from release.yaml for packages
1 parent 5f659fc commit 98e9d8c

5 files changed

Lines changed: 39 additions & 28 deletions

File tree

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
- name: Setup env
4646
uses: the-guild-org/shared-config/setup@main
4747
with:
48-
nodeVersion: 18
48+
nodeVersion: 24
4949
- name: Build
5050
run: yarn build
5151
env:
@@ -63,7 +63,7 @@ jobs:
6363
- name: Setup env
6464
uses: the-guild-org/shared-config/setup@main
6565
with:
66-
nodeVersion: 18
66+
nodeVersion: 24
6767
- name: Build
6868
run: yarn build
6969
env:

.github/workflows/pr.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,3 @@ jobs:
1515
if: ${{ github.event.pull_request.title != 'Upcoming Release Changes' }}
1616
secrets:
1717
githubToken: ${{ secrets.GITHUB_TOKEN }}
18-
19-
release:
20-
uses: the-guild-org/shared-config/.github/workflows/release-snapshot.yml@main
21-
with:
22-
npmTag: alpha
23-
buildScript: build
24-
nodeVersion: 18
25-
secrets:
26-
githubToken: ${{ secrets.GITHUB_TOKEN }}
27-
npmToken: ${{ secrets.NPM_TOKEN }}

.github/workflows/release.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: release
2+
on:
3+
pull_request: # for snapshot release
4+
branches:
5+
- main
6+
7+
push: # for stable release
8+
branches:
9+
- main
10+
11+
jobs:
12+
release-snapshot:
13+
if: github.event_name == 'pull_request'
14+
uses: the-guild-org/shared-config/.github/workflows/release-snapshot.yml@main
15+
permissions:
16+
id-token: write # allows ODIC publishing
17+
pull-requests: write # allows creating comment with alpha versions
18+
with:
19+
npmTag: alpha
20+
buildScript: build
21+
nodeVersion: 24
22+
secrets:
23+
githubToken: ${{ secrets.GITHUB_TOKEN }}
24+
npmToken: FILLER
25+
26+
release-stable:
27+
if: github.event_name == 'push'
28+
uses: the-guild-org/shared-config/.github/workflows/release-stable.yml@main
29+
permissions:
30+
id-token: write # allows ODIC publishing
31+
with:
32+
releaseScript: release
33+
nodeVersion: 24
34+
secrets:
35+
githubToken: ${{ secrets.GITHUB_TOKEN }}
36+
npmToken: FILLER

.github/workflows/release.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

packages/presets/near-operation-file/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"description": "GraphQL Code Generator preset for generating operation code near the operation file",
66
"repository": {
77
"type": "git",
8-
"url": "https://github.com/dotansimha/graphql-code-generator-community.git",
8+
"url": "git+https://github.com/dotansimha/graphql-code-generator-community.git",
99
"directory": "packages/presets/near-operation-file"
1010
},
1111
"license": "MIT",

0 commit comments

Comments
 (0)