Skip to content

release: set up changesets and release tracking - #140

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

liuliu-dev merged 3 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.
  • keep the existing version baseline at 4.9.0, matching the latest GitHub release.
  • keep the existing publish workflow, which already accepts the version 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 4.9.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.

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.

🟡 Changes recommended

The added dependency introduces cross-spawn@7.0.6 with a critical Windows command-injection vulnerability, requiring resolution to a patched version.

1 open issue
What changed in this PR

Adds Changesets-based release tracking while preserving manual publishing through the existing GitHub release workflow.

Changes:

  • Adds Changesets configuration, CLI dependency, and version-preparation scripts.
  • Automates Release tracking PRs without publishing packages or creating releases.
  • Documents contributor and release procedures, retaining the 4.9.0 baseline.
File Description
README.md Updates release instructions.
package.json Adds Changesets CLI and scripts.
package-lock.json Locks Changesets dependencies.
.github/​workflows/​release-tracking.yml Automates release-tracking PRs on main.
.changeset/​README.md Documents changesets, publishing, and workflow permissions.
.changeset/​config.json Configures versioning and changelog generation.

Review effort: Balanced (adaptive)

Comment thread package.json Resolved
Address GHSA-ghv9-86vm-4v8m in all locked cross-spawn copies.
Use registry metadata generated on a hosted runner and preserve unrelated dependencies.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

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

Maintainer review is needed because write-enabled automation couples release preparation and tracking PRs with separate publishing workflows, changing release-process and token/check-policy assumptions.

No open issues 🎉

1 resolved since last review

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 ed97503 into main Dec 4, 2026
7 checks passed
@liuliu-dev
liuliu-dev deleted the liuliu/setup-changesets branch December 4, 2026 21:29
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