From d551652fdf83a5aee421c620cb4c5d0c9fb368ec Mon Sep 17 00:00:00 2001 From: tupe12334 Date: Sat, 18 Jul 2026 02:08:38 +0300 Subject: [PATCH] chore: add changesets tooling and CI check --- .changeset/README.md | 8 ++++++++ .changeset/config.json | 11 +++++++++++ .github/workflows/changesets.yml | 24 ++++++++++++++++++++++++ 3 files changed, 43 insertions(+) create mode 100644 .changeset/README.md create mode 100644 .changeset/config.json create mode 100644 .github/workflows/changesets.yml diff --git a/.changeset/README.md b/.changeset/README.md new file mode 100644 index 0000000..654c6d4 --- /dev/null +++ b/.changeset/README.md @@ -0,0 +1,8 @@ +# Changesets + +Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works +with multi-package repos, or single-package repos to help you version and publish your code. You can +find the full documentation for it [in our repository](https://github.com/changesets/changesets). + +We have a quick list of common questions to get you started engaging with this project in +[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md). diff --git a/.changeset/config.json b/.changeset/config.json new file mode 100644 index 0000000..5c58ec9 --- /dev/null +++ b/.changeset/config.json @@ -0,0 +1,11 @@ +{ + "$schema": "https://unpkg.com/@changesets/config@3.1.4/schema.json", + "changelog": "@changesets/cli/changelog", + "commit": false, + "fixed": [], + "linked": [], + "access": "restricted", + "baseBranch": "main", + "updateInternalDependencies": "patch", + "ignore": [] +} diff --git a/.github/workflows/changesets.yml b/.github/workflows/changesets.yml new file mode 100644 index 0000000..05389b6 --- /dev/null +++ b/.github/workflows/changesets.yml @@ -0,0 +1,24 @@ +name: Changesets +on: + pull_request: + types: [opened, synchronize, reopened] +jobs: + changeset-check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dorny/paths-filter@v3 + id: changes + with: + filters: | + src: + - '**' + - '!.changeset/**' + - '!.github/**' + changeset: + - '.changeset/*.md' + - name: Require changeset + if: steps.changes.outputs.src == 'true' && steps.changes.outputs.changeset == 'false' + run: | + echo '::error::Source files changed but no .changeset/*.md file was added. Run `npx changeset add` (or `npx changeset add --empty` if the change needs no release note).' + exit 1