From 57d9262f29dc35068dda919494db7ea0effbb4b3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 27 Aug 2026 06:25:53 +0000 Subject: [PATCH 1/2] chore(deps): bump changesets/action from 1 to 2 Bumps [changesets/action](https://github.com/changesets/action) from 1 to 2. - [Release notes](https://github.com/changesets/action/releases) - [Changelog](https://github.com/changesets/action/blob/main/CHANGELOG.md) - [Commits](https://github.com/changesets/action/compare/v1...v2) --- updated-dependencies: - dependency-name: changesets/action dependency-version: '2' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 483dfdd..e35b6fc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,7 +35,7 @@ jobs: - name: Create release PR if new changesets are present id: changesets - uses: changesets/action@v1 + uses: changesets/action@v2 with: title: 'New Release' commit: 'Release new version' From 347e617817e9e979fe2165243f387dbc66649781 Mon Sep 17 00:00:00 2001 From: Matt Paletta Date: Mon, 31 Aug 2026 14:58:30 +0100 Subject: [PATCH 2/2] chore: make release workflow compatible with changesets/action v2 changesets/action v2 requires Changesets CLI v3 and renamed its inputs and outputs, so bump the CLI and update the workflow accordingly: - @changesets/cli ^2.26.2 -> ^3.0.0 (v2 rejects CLI v2 projects) - title/commit/version inputs -> pr-title/commit-message/version-script - GITHUB_TOKEN env var -> github-token input (env var no longer read) - hasChangesets output -> has-changesets - changeset tag -> changeset git-tag (renamed in CLI v3) - pin Node 24, since CLI v3 requires ^22.11 || ^24 || >=26 Co-Authored-By: Claude Opus 5 --- .changeset/config.json | 2 +- .github/workflows/release.yml | 15 ++++++++------- package.json | 2 +- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.changeset/config.json b/.changeset/config.json index 4cac078..6402ccb 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -1,5 +1,5 @@ { - "$schema": "https://unpkg.com/@changesets/config@2.3.1/schema.json", + "$schema": "https://unpkg.com/@changesets/config@4.0.0/schema.json", "changelog": "@changesets/cli/changelog", "commit": false, "fixed": [], diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e35b6fc..beacd20 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,6 +29,8 @@ jobs: - name: Setup Node.js environment uses: actions/setup-node@v6 + with: + node-version: 24 - name: Install changeset dependencies run: npm install @@ -37,16 +39,15 @@ jobs: id: changesets uses: changesets/action@v2 with: - title: 'New Release' - commit: 'Release new version' - version: npm run version - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + pr-title: 'New Release' + commit-message: 'Release new version' + version-script: npm run version + github-token: ${{ secrets.GITHUB_TOKEN }} - name: Create new release if release PR is merged - if: steps.changesets.outputs.hasChangesets == 'false' + if: steps.changesets.outputs.has-changesets == 'false' run: | - npx changeset tag && git push origin --tags + npx changeset git-tag && git push origin --tags COMMIT_TAG=$(git tag --points-at HEAD) if [ -n "$COMMIT_TAG" ]; then echo "A tag is attached to HEAD. Creating a new release..." diff --git a/package.json b/package.json index 1e83bae..87dcc83 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,6 @@ "version": "changeset version && PACKAGE_VERSION=$(node -p \"require('./package.json').version\") && sed -i \"s/version '.*'/version '$PACKAGE_VERSION'/g\" lib/build.gradle" }, "devDependencies": { - "@changesets/cli": "^2.26.2" + "@changesets/cli": "^3.0.0" } } \ No newline at end of file