Repository navigation
Conversation
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
|
There was a problem hiding this comment.
🟢 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-packagesscript 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
The Changesets release workflow now regenerates
package-lock.jsonwhenever it versions packages, keeping the lockfile in sync with release PRs.Changelog
New
Changed
package-lock.jsonas part of Changesets versioning.Removed
Rollout strategy
This only updates release automation; it does not change published package behavior.
Testing & Reviewing