Skip to content

release: set up changesets and release tracking - #411

Merged
liuliu-dev merged 1 commit into
mainfrom
liuliu/setup-changesets
Dec 4, 2026
Merged

liuliu-dev merged 1 commit 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 0.0.0-development to 5.5.0, 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 passed in the isolated release preparation 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 5.5.0 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.

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.

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:16
@liuliu-dev
liuliu-dev requested a review from a team as a code owner December 3, 2026 21:16
Copilot AI adaptive review requested due to automatic review settings December 3, 2026 21:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 cross-workflow release lifecycle and two-registry publication handoff require maintainer review of release-policy fit and confirmation that the 5.5.0 baseline matches the live npm package.

No open issues 🎉

What changed in this PR

Adds Changesets-based release preparation for the package while keeping publishing manual through GitHub releases.

Changes:

  • Adds Changesets configuration, scripts, dependencies, and contributor guidance.
  • Automates release-tracking PRs without publishing packages or creating tags.
  • Aligns the version baseline to 5.5.0 and lets publishing accept a prepared version.
File Description
package.json Adds Changesets tooling and sets the version baseline.
package-lock.json Locks new dependencies and aligns the version baseline.
CONTRIBUTING.md Documents release preparation and manual publishing.
.github/​workflows/​release-tracking.yml Creates or updates release-tracking PRs.
.github/​workflows/​publish.yml Allows publishing an already-prepared version.
.changeset/​README.md Explains changesets, release preparation, and workflow permissions.
.changeset/​config.json Configures Changesets for public releases from main.

Review effort: Balanced (adaptive)

@liuliu-dev
liuliu-dev merged commit 4125a1f into main Dec 4, 2026
7 checks passed
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.

3 participants