Skip to content

release: set up changesets and release tracking - #110

Merged
liuliu-dev merged 2 commits into
mainfrom
liuliu/setup-changesets
Dec 4, 2026
Merged

liuliu-dev merged 2 commits into
mainfrom
liuliu/setup-changesets

Conversation

@liuliu-dev

@liuliu-dev liuliu-dev commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

part of https://github.com/github/primer-engineering/issues/363, following up on https://github.com/github/primer-engineering/issues/343.

same release-tracking-only approach as the auto-check-element pilot, whose hosted install/build/tests passed.

what changed

  • add changesets config, CLI/scripts, and contributor instructions.
  • add a workflow that opens/updates a Release tracking PR when changesets land on main.
  • keep publishing manual: merging the tracking PR does not publish packages or create tags/GitHub releases.
  • align the package/lockfile baseline from 1.0.12 to 1.0.13, matching the latest GitHub release.
  • let the existing publish workflow accept the version already prepared by changesets.

extending the release conductor alert to github/* repos is a separate follow-up. changes merged before this setup still need a one-time review and changesets for anything that needs releasing.

validation

  • isolated checks with Changesets CLI 2.30.0 passed for empty release state, patch/minor release plans, package/lockfile updates, same-version publishing compatibility, and repeat release preparation.
  • changelog generation could not be verified locally with the exact locked @github/prettier-config@0.0.4, which is not cached and could not be downloaded. this remains a pre-merge check.
  • workflow YAML, preserved runtime dependencies/existing scripts, and locked Node.js typings were checked.
  • local npm run build is blocked by missing dependencies. the npm registry is unreachable from this environment (ENOTCONN), so this is a draft while hosted CI validates the real install/build/tests.

before merging

  • confirm hosted CI passes.
  • confirm npm's latest published version matches the 1.0.13 baseline; the live registry lookup was blocked locally.
  • confirm this repo is in scope for continued maintenance and that the release-tracking-only approach fits.
  • validate changelog generation with the exact locked formatter installed.

GitHub Actions is currently allowed to create PRs in this repo. generated PRs use GITHUB_TOKEN and won't automatically trigger other Actions workflows; the contributor docs call out using an approved app token if required PR checks need those events.

changeset check

  • add a read-only Check for changeset PR check; it passes with a release note or skip-changeset and reruns when labels change.
  • README edits and deleted notes do not count as a new changeset. other build/test checks are unaffected.
  • automatically label version-preparation PRs with skip-changeset; apply the label manually for docs/dev-only changes that do not need a release.
  • tested the workflow script for notes, label bypass/removal, pagination, and API errors. branch protection is unchanged; make Check for changeset required to enforce it at merge time.

Prepare release tracking PRs while keeping GitHub release publishing manual.

Refs github/primer-engineering#363

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@liuliu-dev
liuliu-dev marked this pull request as ready for review December 3, 2026 21:17
@liuliu-dev
liuliu-dev requested a review from a team as a code owner December 3, 2026 21:17
Copilot AI adaptive review requested due to automatic review settings December 3, 2026 21:17

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The release automation couples version, changelog, and lockfile preparation with generated PRs and manual publishing, while exact locked-formatter compatibility and the npm 1.0.13 baseline still require maintainer validation.

No open issues 🎉

What changed in this PR

Adds Changesets-based release tracking for the package while keeping publishing manual.

Changes:

  • Adds Changesets configuration, scripts, dependencies, and contributor instructions.
  • Automates release-tracking PRs without publishing packages or creating releases.
  • Aligns the version baseline to 1.0.13 and allows publishing a Changesets-prepared version.
File Description
package.json Adds Changesets scripts and CLI; updates version baseline.
package-lock.json Locks Changesets dependencies and aligns the version baseline.
.github/​workflows/​release-tracking.yml Creates or updates release-tracking PRs.
.github/​workflows/​publish.yml Allows publishing the already-prepared version.
.changeset/​README.md Documents release notes, manual publishing, and permissions.
.changeset/​config.json Configures public-package versioning and changelog generation.

Review effort: Balanced (adaptive)

@liuliu-dev liuliu-dev added the skip-changeset No release needed; bypass only the changeset check. label Dec 4, 2026
Require a release note or an explicit skip label in the new CI check. Label generated release tracking PRs and document the required-check setting.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@liuliu-dev
liuliu-dev merged commit a1bdb10 into main Dec 4, 2026
8 checks passed
@liuliu-dev
liuliu-dev deleted the liuliu/setup-changesets branch December 4, 2026 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-changeset No release needed; bypass only the changeset check.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants