Skip to content

Update package lockfile when versioning packages - #8808

Open
joshblack wants to merge 1 commit into
mainfrom
automate-lockfile-update-on-release
Open

joshblack wants to merge 1 commit into
mainfrom
automate-lockfile-update-on-release

Conversation

@joshblack

Copy link
Copy Markdown
Member

The Changesets release workflow now regenerates package-lock.json whenever it versions packages, keeping the lockfile in sync with release PRs.

Changelog

New

Changed

  • Refresh package-lock.json as part of Changesets versioning.

Removed

Rollout strategy

  • No changes needed in github/github-ui
  • Needs changes in github/github-ui
  • Ships with feature flag(s)
  • Not sure
  • No rollout required

This only updates release automation; it does not change published package behavior.

Testing & Reviewing

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
@joshblack joshblack added the skip changeset This change does not need a changelog label Nov 20, 2026
@changeset-bot

changeset-bot Bot commented Nov 20, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 09364a7

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@joshblack
joshblack marked this pull request as ready for review November 20, 2026 15:40
@joshblack
joshblack requested a review from a team as a code owner November 20, 2026 15:40
@joshblack
joshblack requested review from tay1orjones and a balanced review from Copilot November 20, 2026 15:40
@joshblack joshblack added the integration-tests: skipped manually Changes in this PR do not require an integration test label Nov 20, 2026
@joshblack
joshblack enabled auto-merge November 20, 2026 15:40
@github-actions github-actions Bot added the staff Author is a staff member label Nov 20, 2026

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.

🟢 Approval recommended

No active review issues remain for the release-automation change that keeps package-lock.json synchronized with package versions.

No open issues 🎉

What changed in this PR

Updates Primer React’s release automation to keep package-lock.json synchronized with package versions in release PRs. Published package behavior is unchanged.

Changes:

  • Adds a version-packages script that runs Changesets versioning, then refreshes the lockfile.
  • Configures the release workflow to use that script.
File Description
package.json Adds the combined versioning and lockfile-refresh script.
.github/​workflows/​release.yml Sets version-script to npm run version-packages.

Review effort: Balanced

This branch was successfully deployed

2 active deployments
storybook-preview-8808 — 09364a7c Deployed Nov 20, 2026 by github-actions[bot]
github-pages — 09364a7c Deployed Nov 20, 2026 by joshblack via deploy-preview #34465
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

integration-tests: skipped manually Changes in this PR do not require an integration test skip changeset This change does not need a changelog staff Author is a staff member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants