diff --git a/.changeset/ink-switch-size-scale.md b/.changeset/ink-switch-size-scale.md deleted file mode 100644 index f4a3c45..0000000 --- a/.changeset/ink-switch-size-scale.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@inkcre/ui-web": minor ---- - -Remap the InkSwitch size scale so `md` matches the previous `sm` dimensions (80x24), `lg` matches the previous `md` (100x36), and `sm` gets smaller (64x24). The base/xs tier shrinks to 48x20. This is a visual change for consumers relying on the old `md`/`lg` rendered sizes; the `md` default was oversized relative to the label font and surrounding form controls. diff --git a/.github/workflows/release-and-publish.yml b/.github/workflows/release-and-publish.yml index d96f913..f2fd095 100644 --- a/.github/workflows/release-and-publish.yml +++ b/.github/workflows/release-and-publish.yml @@ -30,6 +30,16 @@ jobs: scope: "@inkcre" - run: pnpm install --frozen-lockfile - run: pnpm check + # A GitHub App token (not the default GITHUB_TOKEN) creates the release PR: + # events produced by GITHUB_TOKEN never trigger new workflow runs, so the + # release PR would have no CI and could not satisfy the branch ruleset. + - uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2.2.1 + id: release-app-token + with: + app-id: ${{ secrets.INKCRE_RELEASE_APP_ID }} + private-key: ${{ secrets.INKCRE_RELEASE_APP_PRIVATE_KEY }} + owner: InKCre + repositories: ui - name: Create Release Pull Request or Publish id: changesets uses: changesets/action@a45c4d594aa4e2c509dc14a9f2b3b67ba3780d0d # v1.9.0 @@ -38,6 +48,8 @@ jobs: publish: pnpm run release commit: "chore: version packages" title: "chore: version packages" + # The action reads this input (not the GITHUB_TOKEN env) for PR creation. + github-token: ${{ steps.release-app-token.outputs.token }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/packages/web/CHANGELOG.md b/packages/web/CHANGELOG.md index 1e21252..77443a7 100644 --- a/packages/web/CHANGELOG.md +++ b/packages/web/CHANGELOG.md @@ -1,5 +1,11 @@ # @inkcre/ui-web +## 2.5.0 + +### Minor Changes + +- 207bec8: Remap the InkSwitch size scale so `md` matches the previous `sm` dimensions (80x24), `lg` matches the previous `md` (100x36), and `sm` gets smaller (64x24). The base/xs tier shrinks to 48x20. This is a visual change for consumers relying on the old `md`/`lg` rendered sizes; the `md` default was oversized relative to the label font and surrounding form controls. + ## 2.4.0 ### Minor Changes diff --git a/packages/web/package.json b/packages/web/package.json index 169dd6f..8fa9fbd 100644 --- a/packages/web/package.json +++ b/packages/web/package.json @@ -1,6 +1,6 @@ { "name": "@inkcre/ui-web", - "version": "2.4.0", + "version": "2.5.0", "description": "Design System for InKCre Web Projects", "keywords": [ "design-system", diff --git a/packages/web/src/version.ts b/packages/web/src/version.ts index 2b85ac6..1e37c24 100644 --- a/packages/web/src/version.ts +++ b/packages/web/src/version.ts @@ -1,2 +1,2 @@ // Auto-generated by build-package-metadata.ts - DO NOT EDIT -export const version = "2.4.0"; +export const version = "2.5.0";