Skip to content

Commit cf8f98a

Browse files
committed
Test config
1 parent 924933a commit cf8f98a

2 files changed

Lines changed: 49 additions & 9 deletions

File tree

.github/workflows/release.yml

Lines changed: 48 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,59 @@ on:
88
branches:
99
- main
1010

11+
permissions:
12+
id-token: write # allows ODIC publishing
13+
contents: read
14+
1115
jobs:
1216
release-snapshot:
17+
runs-on: ubuntu-24.04
1318
if: github.event_name == 'pull_request'
14-
uses: the-guild-org/shared-config/.github/workflows/release-snapshot.yml@main
1519
# permissions:
1620
# id-token: write # allows ODIC publishing
17-
with:
18-
npmTag: alpha
19-
buildScript: build
20-
nodeVersion: 24
21-
secrets:
22-
githubToken: ${{ secrets.GITHUB_TOKEN }}
23-
npmToken: ${{ secrets.NPM_TOKEN }}
21+
# contents: read
22+
steps:
23+
- name: Check out repository
24+
uses: actions/checkout@v4
25+
26+
- name: Set up Node.js
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: 24
30+
registry-url: 'https://registry.npmjs.org'
31+
cache: yarn
32+
cache-dependency-path: '**/yarn.lock'
33+
34+
- run: yarn install --prefer-offline
35+
36+
- name: Deploy snapshot
37+
run: |
38+
yarn changeset version --snapshot $RELEASE_TAG
39+
yarn build
40+
yarn changeset publish --tag alpha --no-git-tag
41+
env:
42+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43+
RELEASE_TAG: test-run${{ github.run_number }}-${{ github.run_attempt }}
44+
45+
# - name: Release Snapshot
46+
# uses: 'the-guild-org/[email protected]'
47+
# with:
48+
# tag: alpha
49+
# prepareScript: 'yarn build'
50+
# env:
51+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # GitHub Token
52+
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }} # NPM Token
53+
54+
# uses: the-guild-org/shared-config/.github/workflows/release-snapshot.yml@main
55+
# permissions:
56+
# id-token: write # allows ODIC publishing
57+
# with:
58+
# npmTag: alpha
59+
# buildScript: build
60+
# nodeVersion: 24
61+
# secrets:
62+
# githubToken: ${{ secrets.GITHUB_TOKEN }}
63+
# npmToken: ${{ secrets.NPM_TOKEN }} # FIXME: eddeee888 Required because the workflows requires it
2464

2565
release-stable:
2666
if: github.event_name == 'push'

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)