-
Notifications
You must be signed in to change notification settings - Fork 0
feat(ci): automate releases with changesets #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
86d81a2
feat(ci): automate releases with changesets
rkovalov 355f59d
chore(depps): update deps
rkovalov 6b25f9e
chore(changeset): add empty changeset
rkovalov 3ee3f37
fix(ci): publish before committing version bump
rkovalov 88de61a
docs(contributing): fix markdownlint md040 unlabeled code fences
rkovalov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| { | ||
| "$schema": "https://unpkg.com/@changesets/config@3.0.0/schema.json", | ||
| "changelog": [ | ||
| "@changesets/changelog-github", | ||
| { "repo": "rstackio/services" } | ||
| ], | ||
| "commit": false, | ||
| "fixed": [], | ||
| "linked": [], | ||
| "access": "public", | ||
| "baseBranch": "main", | ||
| "updateInternalDependencies": "patch", | ||
| "ignore": [] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| --- | ||
| --- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| # Contributing | ||
|
|
||
| ## Setup | ||
|
|
||
| ```sh | ||
| pnpm install | ||
| pnpm test:watch # run tests in watch mode | ||
| pnpm dev # watch mode — rebuilds on file changes | ||
| ``` | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
|
|
||
| ## Making a PR | ||
|
|
||
| ### 1. Make your changes | ||
|
|
||
| Write code, add or update tests, update docs if needed. | ||
|
|
||
| ### 2. Add a changeset | ||
|
|
||
| Every PR that touches source code **must include a changeset** — CI will fail without one. | ||
|
|
||
| ```sh | ||
| pnpm changeset | ||
| ``` | ||
|
|
||
| This opens an interactive prompt: | ||
|
|
||
| ```text | ||
| 🦋 What kind of change is this for @rstackio/services? | ||
| ❯ patch — bug fix, dependency update, internal refactor | ||
| minor — new backwards-compatible feature | ||
| major — breaking change | ||
| ``` | ||
|
|
||
| Pick the bump type, write a short description of what changed and why (this becomes the CHANGELOG entry), then commit the generated `.changeset/*.md` file with your PR. | ||
|
|
||
| ### 3. Commit message format | ||
|
|
||
| This repo uses [Conventional Commits](https://www.conventionalcommits.org/): | ||
|
|
||
| ```text | ||
| <type>(<scope>): <description> | ||
|
|
||
| feat(data-provider): add andFinally() chain method | ||
| fix(mock): handle AbortSignal on delay cancel | ||
| docs: update usage examples | ||
| chore: upgrade typescript to 5.9 | ||
| ``` | ||
|
|
||
| Common types: `feat`, `fix`, `docs`, `test`, `refactor`, `chore`. | ||
|
|
||
| ### 4. Open the PR | ||
|
|
||
| CI runs types, deps, linting, tests, and the changeset check automatically. | ||
|
|
||
| --- | ||
|
|
||
| ## Release flow | ||
|
|
||
| Releases are fully automated — you don't need to bump versions or publish manually. | ||
|
|
||
| When your PR is merged to `main`, the publish pipeline runs automatically: | ||
| 1. It applies all pending changesets — bumps the version in `package.json` and generates `CHANGELOG.md`. | ||
| 2. Commits the version bump directly to `main` and publishes the package to npm. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.