Skip to content

Regenerate PHP packages in the sync-gutenberg-packages task #2679

Closed
adamziel wants to merge 5 commits into
WordPress:trunkfrom
adamziel:update/sync-gutenberg-packages-to-rebuild-php-includes
Closed

Regenerate PHP packages in the sync-gutenberg-packages task #2679
adamziel wants to merge 5 commits into
WordPress:trunkfrom
adamziel:update/sync-gutenberg-packages-to-rebuild-php-includes

Conversation

@adamziel
Copy link
Copy Markdown
Contributor

@adamziel adamziel commented May 5, 2022

What problem does this PR solve?

The npx sync-gutenberg-packages command introduced in #2621 does not regenerate the script-loader-packages.php file.

This PR makes it run npm run build to regenerate that file.

Let's test it on Tuesday when releasing RC2 @gziolo

Comment thread Gruntfile.js Outdated
@adamziel adamziel force-pushed the update/sync-gutenberg-packages-to-rebuild-php-includes branch from 848ba38 to 6156242 Compare May 10, 2022 13:48
Comment thread Gruntfile.js Outdated
* https://core.trac.wordpress.org/ticket/55559
*/
const distTag = grunt.option('dist-tag') || 'latest';
const currentBranch = spawn( 'git', [ 'branch', '--show-current' ], {
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.

It won't work for svn users 😅

However, I think it's very unlikely you would run latest outside of the trunk branch.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Let's not block this PR on that and move this discussion to a separate one

@gziolo
Copy link
Copy Markdown
Member

gziolo commented May 17, 2022

I added part of the changes to trunk last week with 619693e:

Screenshot 2022-05-17 at 15 09 19

#2723 is the confirmation that it works as expected.

@adamziel adamziel closed this May 17, 2022
@adamziel
Copy link
Copy Markdown
Contributor Author

Fantastic! Let's close this PR then

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.

2 participants