Skip to content

Github workflows: extend package changelog nudge to bundled packages#78934

Open
simison wants to merge 2 commits into
trunkfrom
update/changelog-nudge-more-packages
Open

Github workflows: extend package changelog nudge to bundled packages#78934
simison wants to merge 2 commits into
trunkfrom
update/changelog-nudge-more-packages

Conversation

@simison
Copy link
Copy Markdown
Member

@simison simison commented Jun 4, 2026

What?

Extends the changelog nudge GitHub action to include all bundled packages, plus private-apis and wp-build packages.

Why?

Follow-up to the previous config consolidation done in #78169

Bundled packages

These packages are bundled and referenced as window.wp globals, and follow Semantic Versioning. It's important that downstream consumers are kept informed about changes that might impact their usage of the package. The likelihood of breaking changes is greater since bundled packages are often experimental, and we don't need to be as careful with backwards compatibility; consumers update versions at will at their own pace.

WP Build and Private APIs

Extending with WP Build came up in #78807 (comment) after updating some missing changelog entries from wp-build package.

Consumers are starting to use WP Build, and can control when they update the version; it's not a runtime library externalised, but a command-line tool instead. The tool is at a fairly early stage, so it's important to communicate well about any changes within it.

Additions in private APIs, particularly when used in bundled packages, can cause mismatched version expectations when used with WP Build: bundled packages can try to depend on unlocking an API in externalised window.wp.* packages with a version of private APIs that doesn't yet list the permissions for the unlock. (See #75987)

How?

Just extends the existing list.

Testing Instructions

Github actions pass.

Use of AI Tools

@simison simison requested review from a team and jsnajdr June 4, 2026 07:36
@simison simison requested a review from desrosj as a code owner June 4, 2026 07:36
@simison simison added [Tool] Dependency Extraction Webpack Plugin /packages/dependency-extraction-webpack-plugin GitHub Actions Pull requests that update GitHub Actions code labels Jun 4, 2026
@simison simison mentioned this pull request Jun 4, 2026
package:
- components
# Bundled packages
# Keep in sync with dependency-extraction-webpack-plugin
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The list:

const BUNDLED_PACKAGES = [
'@wordpress/admin-ui',
'@wordpress/dataviews',
'@wordpress/dataviews/wp',
'@wordpress/fields',
'@wordpress/grid',
'@wordpress/icons',
'@wordpress/interface',
'@wordpress/style-runtime',
'@wordpress/ui',
'@wordpress/undo-manager',
'@wordpress/views',
];

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 4, 2026

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: simison <[email protected]>
Co-authored-by: aduth <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

- 'packages/dataviews/**'
- 'packages/ui/**'
- 'packages/fields/**'
- 'packages/grid/**'
Copy link
Copy Markdown
Member Author

@simison simison Jun 4, 2026

Choose a reason for hiding this comment

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

We could leave Grid out for now since it's still private package and not published to NPM. But not a biggie to have it, and a good habit to keep the changelog up-to-date.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yeah, it feels a little weird if our audience for changelogs is consumers that we'd be writing a bunch of changelogs for things that don't ever reach someone until the big "initial release" that's accompanied by a bunch of seemingly-irrelevant changelog notes. But to your point, if it wouldn't bother people maintaining this package, it's good to build that muscle memory.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 4, 2026

Flaky tests detected in 48f4b97.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/26937792078
📝 Reported issues:

@simison simison added the [Type] Build Tooling Issues or PRs related to build tooling label Jun 4, 2026
- 'packages/dataviews/**'
- 'packages/ui/**'
- 'packages/fields/**'
- 'packages/grid/**'
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yeah, it feels a little weird if our audience for changelogs is consumers that we'd be writing a bunch of changelogs for things that don't ever reach someone until the big "initial release" that's accompanied by a bunch of seemingly-irrelevant changelog notes. But to your point, if it wouldn't bother people maintaining this package, it's good to build that muscle memory.

package:
- components
# Bundled packages
# Keep in sync with dependency-extraction-webpack-plugin
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I sense the answer is a reluctant "yes", but do we still maintain @wordpress/dependency-extraction-webpack-plugin? At the very least, I think the way I'd think we should document this expectation is around our current thinking with wpScript / wpScriptModule and how that's handled through @wordpress/build. And if we intend to maintain @wordpress/dependency-extraction-webpack-plugin, it should probably be updated to use those same indicators instead of including a hard-coded list. A related thought I had is that if we wanted to keep this in sync, we could do some sort of CI inception to force-keep it in sync 😂 (something like #76263)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

GitHub Actions Pull requests that update GitHub Actions code [Tool] Dependency Extraction Webpack Plugin /packages/dependency-extraction-webpack-plugin [Type] Build Tooling Issues or PRs related to build tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants