Skip to content

Commit 740ed3d

Browse files
authored
Add changesets and snapshot publishing (#104)
1 parent e3cc11e commit 740ed3d

File tree

8 files changed

+881
-3
lines changed

8 files changed

+881
-3
lines changed

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "restricted",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Publish Snapshot
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
push:
7+
branches: [main]
8+
9+
jobs:
10+
snapshot:
11+
name: Publish Snapshot
12+
# forks are not allowed to publish snapshots
13+
if: github.repository_owner == 'graphprotocol'
14+
runs-on: ubuntu-latest
15+
timeout-minutes: 10
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: pnpm/action-setup@v3
19+
with:
20+
version: 9
21+
- uses: actions/setup-node@v4
22+
with:
23+
node-version-file: "package.json"
24+
cache: "pnpm"
25+
- name: Install dependencies
26+
run: pnpm install --frozen-lockfile
27+
- name: Build
28+
run: pnpm build
29+
- name: Create snapshot
30+
id: snapshot
31+
run: pnpx [email protected] publish --pnpm --comment=off ./packages/*

.github/workflows/tests-and-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
name: Install deps, build required package, typecheck, lint and test
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v3
10+
- uses: actions/checkout@v4
1111
- uses: pnpm/action-setup@v3
1212
with:
1313
version: 9

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
"@babel/core": "^7.26.0",
1717
"@biomejs/biome": "1.9.4",
1818
"babel-plugin-annotate-pure-calls": "^0.5.0",
19+
"@changesets/cli": "^2.27.11",
1920
"glob": "^11.0.1",
21+
"pkg-pr-new": "^0.0.39",
2022
"typescript": "^5.7.3",
2123
"vitest": "^3.0.1"
2224
}

packages/hypergraph-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"repository": {
1212
"type": "git",
13-
"url": "https://github.com/geobrowser/graph-framework.git",
13+
"url": "https://github.com/graphprotocol/hypergraph.git",
1414
"directory": "packages/react"
1515
},
1616
"license": "MIT",

packages/hypergraph/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"repository": {
1111
"type": "git",
12-
"url": "https://github.com/geobrowser/graph-framework.git",
12+
"url": "https://github.com/graphprotocol/hypergraph.git",
1313
"directory": "packages/hypergraph"
1414
},
1515
"license": "MIT",

0 commit comments

Comments
 (0)