From 3d8b3ae941db805608cc3570c701e83f1e9461da Mon Sep 17 00:00:00 2001 From: Aleksandar Grbic Date: Fri, 14 Aug 2026 08:48:36 +0200 Subject: [PATCH] fix(ci): revert changesets/action to v1.9.0 and ignore its majors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The v2.0.0 bump in #384 broke the release workflow on main. v2 renames every input, so the existing `with:` block became invalid: version -> version-script, publish -> publish-script, commit -> commit-message, title -> pr-title, createGithubReleases -> create-github-releases More fundamentally, v2 cannot work here yet: - It validates that the project uses Changesets CLI v3 and directs CLI v2 users back to @v1. apps/ui is on @changesets/cli 2.31.0. - It removes `cwd`, which this monorepo depends on — .changeset lives in apps/ui, not the repo root. - Custom version/publish scripts must now thread CHANGESETS_OUTPUT through to the CLI for published-package detection. Reverts to the exact SHA main ran before #384 and ignores the major so Dependabot stops re-proposing it, matching the @astrojs/cloudflare and elysia-rate-limit entries. Taking v2 is a deliberate piece of work alongside the CLI v3 upgrade. Worth noting for future action bumps: Dependabot bumped a major action version without touching its inputs, and no PR-triggered workflow exercises apps-ui-release.yml, so this could only surface on merge. --- .github/dependabot.yml | 9 +++++++++ .github/workflows/apps-ui-release.yml | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 947983a..64ef0bb 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -151,6 +151,15 @@ updates: labels: ["dependencies", "ci"] commit-message: prefix: "chore(ci)" + ignore: + # changesets/action 2.x requires Changesets CLI v3 and validates it at + # runtime, directing CLI v2 users back to @v1. apps/ui is on + # @changesets/cli 2.31.0. v2 also renames every input and removes + # `cwd`, which the monorepo layout relies on (.changeset lives in + # apps/ui, not the repo root). Revisit together with the CLI v3 + # upgrade, not as a dependency bump. + - dependency-name: "changesets/action" + update-types: ["version-update:semver-major"] - package-ecosystem: docker directory: /apps/api diff --git a/.github/workflows/apps-ui-release.yml b/.github/workflows/apps-ui-release.yml index d2a37da..b7bc9be 100644 --- a/.github/workflows/apps-ui-release.yml +++ b/.github/workflows/apps-ui-release.yml @@ -63,7 +63,7 @@ jobs: # build below whether to add a : tag. - name: Create Release Pull Request or publish id: changesets - uses: changesets/action@22ccf9aa43179fe9e27dc62e575971d28cce197c # v2.0.0 + uses: changesets/action@a45c4d594aa4e2c509dc14a9f2b3b67ba3780d0d # v1.9.0 with: cwd: apps/ui version: bunx changeset version