Skip to content

Commit eda4ac2

Browse files
committed
feat(release): set up changeset and packages release flow
1 parent b1a4e38 commit eda4ac2

17 files changed

+1031
-297
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/changelog-github", { "repo": "hypercerts-org/hypercerts-sdk" }],
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "public",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@hypercerts-org/lexicon": minor
3+
---
4+
5+
Initial release of lexicon package with ATProto lexicon definitions and TypeScript types for Hypercerts protocol
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@hypercerts-org/sdk-core": minor
3+
---
4+
5+
Initial release of sdk-core package with ATProto SDK for authentication, repository operations, and lexicon management
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@hypercerts-org/sdk-react": minor
3+
---
4+
5+
Initial release of sdk-react package with React hooks and components for Hypercerts ATProto SDK

.github/workflows/create-prerelease-sdk.yml

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

.github/workflows/create-release-sdk.yml

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

.github/workflows/dryrun-release-ci-sdk.yml

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

.github/workflows/pr-check.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: PR Check
2+
3+
on:
4+
pull_request:
5+
branches: [main, develop]
6+
7+
jobs:
8+
build-and-test:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
with:
13+
fetch-depth: 0
14+
- uses: pnpm/action-setup@v4
15+
- uses: actions/setup-node@v4
16+
with:
17+
node-version: 20
18+
cache: "pnpm"
19+
- run: pnpm install
20+
- run: pnpm build
21+
- run: pnpm test
22+
- run: pnpm lint
23+
24+
changeset-check:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v4
28+
with:
29+
fetch-depth: 0
30+
- uses: pnpm/action-setup@v4
31+
- uses: actions/setup-node@v4
32+
with:
33+
node-version: 20
34+
cache: "pnpm"
35+
- run: pnpm install
36+
- name: Check for changeset
37+
run: |
38+
if git diff --name-only origin/${{ github.base_ref }}...HEAD | grep -q "^packages/"; then
39+
if git diff --name-only origin/${{ github.base_ref }}...HEAD | grep -q "^\.changeset/.*\.md$"; then
40+
echo "Changeset found"
41+
else
42+
echo "::warning::No changeset found. Run 'pnpm changeset' if this PR includes user-facing changes."
43+
fi
44+
else
45+
echo "No package changes detected"
46+
fi

0 commit comments

Comments
 (0)