Skip to content

ci: release through the shared uxfront-com/.github workflow - #429

Merged
alexgrozav merged 1 commit into
mainfrom
shared-release-workflow-uxf-1011
Nov 24, 2026
Merged

alexgrozav merged 1 commit into
mainfrom
shared-release-workflow-uxf-1011

Conversation

@alexgrozav

Copy link
Copy Markdown
Contributor

Description

changesets.yml now calls the shared release workflow in uxfront-com/.github, pinned to 18a1d7cb1576c8053a80f3d166cfefecd470f5b3 (a commit on its main), instead of running the whole release in one job.

Before, one job held id-token: write while it installed, built and versioned with contents: write. The shared workflow splits the release into jobs: it selects the mode, versions, builds and packs with read access only, and gives id-token: write to the publish job alone, the only one that talks to npm.

  • The filename and name: Changesets stay, since npm's trusted publisher names this file. A header comment says so.
  • The inputs keep the current behaviour: build: pnpm run ci:prepublish, version-script: pnpm ci:version, and chore: update versions as the commit message and PR title.
  • The "Update npm" step goes away. The shared publish job checks that npm is 11.5.1 or later instead. Node 24 on ubuntu-latest already brings npm 11.19.1 (Node v24.22.3 in the last Changesets run).
  • workflow_dispatch is new, so a release that failed half-way can run again. The shared workflow runs only on refs/heads/main.
  • No secrets: line, no NPM_TOKEN and no registry-url. The version job gets the caller's GITHUB_TOKEN, which @changesets/changelog-github needs.

No changeset: no package changes.

Related issue

None.

Type of change

  • 🐞 Bug fix (non-breaking change that fixes an issue)
  • ✨ New feature (non-breaking change that adds functionality)
  • 💥 Breaking change (fix or feature that changes existing behavior)
  • 📖 Documentation
  • ♻️ Refactor / internal (no functional change)
  • 🔧 Build / tooling / CI

Checklist

  • My commits follow Conventional Commits with a package scope (e.g. feat(theme): …)
  • I ran pnpm build:nodocs && pnpm lint && pnpm typecheck && pnpm test and everything passes
  • I added a changeset (pnpm changeset) for changes to publishable packages, or this change only touches docs/storybook/app/playground/tests
  • I added or updated tests where relevant
  • I updated documentation where relevant
  • I did not edit generated files (dist/, .styleframe/)
  • My PR targets main and stays focused in scope

Notes / screenshots

  • Checks run: actionlint 1.7.10 passes on changesets.yml, and the pinned release.yml exists at that commit on main. The commit is ci: with no package scope, since it changes no package, and the package build, lint, typecheck and tests don't read this file.
  • @styleframe/config-typescript 3.0.0 and 3.0.1 have no provenance, unlike @styleframe/theme. npm sets trusted publishing per package, so check that this package has a trusted publisher for uxfront-com/styleframe and changesets.yml before you merge the "chore: update versions" PR, or its publish fails.
  • Rollback: revert this PR. The old single-job workflow comes back under the same filename.

Call the shared release workflow, pinned by SHA, from changesets.yml. It
splits the release into jobs, so only the job that publishes to npm gets
`id-token: write`, and the build runs with no write access. The filename
stays, since npm's trusted publisher names it. A manual dispatch is now
possible to rerun a release that failed half-way.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://shared-release-workflow-uxf-1011.storybook.styleframe.dev, https://shared-release-workflow-uxf-1011-styleframe-storybook.uxfront.workers.dev (commit c18fc3a)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://26317157.storybook.styleframe.dev, https://26317157-styleframe-storybook.uxfront.workers.dev c18fc3a 2026-11-24T12:22:42.736Z Visit the dashboard ↗

@cloudflare-workers-and-pages

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://shared-release-workflow-uxf-1011.styleframe.dev, https://shared-release-workflow-uxf-1011-styleframe.uxfront.workers.dev (commit c18fc3a)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://870843c7.styleframe.dev, https://870843c7-styleframe.uxfront.workers.dev c18fc3a 2026-11-24T12:24:00.703Z Visit the dashboard ↗

@alexgrozav
alexgrozav marked this pull request as ready for review November 24, 2026 12:46
@cloudflare-workers-and-pages

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://shared-release-workflow-uxf-1011.play.styleframe.dev, https://shared-release-workflow-uxf-1011-styleframe-playground.uxfront.workers.dev (commit c18fc3a)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://11c427fd.play.styleframe.dev, https://11c427fd-styleframe-playground.uxfront.workers.dev c18fc3a 2026-11-24T12:23:39.671Z Visit the dashboard ↗

@alexgrozav
alexgrozav merged commit 93fbf96 into main Nov 24, 2026
15 checks passed
@alexgrozav
alexgrozav deleted the shared-release-workflow-uxf-1011 branch November 24, 2026 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant