Skip to content

Commit f758a58

Browse files
committed
Test config
1 parent 924933a commit f758a58

2 files changed

Lines changed: 44 additions & 9 deletions

File tree

.github/workflows/release.yml

Lines changed: 43 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,52 @@ on:
1010

1111
jobs:
1212
release-snapshot:
13+
runs-on: ubuntu-24.04
1314
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+
steps:
18+
- name: Check out repository
19+
uses: actions/checkout@v4
20+
21+
- name: Set up Node.js
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: 24
25+
cache: yarn
26+
cache-dependency-path: '**/yarn.lock'
27+
28+
- name: Install deps
29+
run: yarn install --prefer-offline --frozen-lockfile
30+
31+
- name: Deploy snapshot
32+
run: |
33+
yarn changeset version --snapshot $RELEASE_TAG
34+
yarn build
35+
yarn changeset publish --tag alpha --no-git-tag
36+
env:
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
RELEASE_TAG: test-run${{ github.run_number }}-${{ github.run_attempt }}
39+
40+
# - name: Release Snapshot
41+
# uses: 'the-guild-org/changesets-snapshot-action@v0.0.3'
42+
# with:
43+
# tag: alpha
44+
# prepareScript: 'yarn build'
45+
# env:
46+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # GitHub Token
47+
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }} # NPM Token
48+
49+
# uses: the-guild-org/shared-config/.github/workflows/release-snapshot.yml@main
1550
# permissions:
1651
# 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 }}
52+
# with:
53+
# npmTag: alpha
54+
# buildScript: build
55+
# nodeVersion: 24
56+
# secrets:
57+
# githubToken: ${{ secrets.GITHUB_TOKEN }}
58+
# npmToken: ${{ secrets.NPM_TOKEN }} # FIXME: eddeee888 Required because the workflows requires it
2459

2560
release-stable:
2661
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)