Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Conversation

adamziel
Copy link
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

Gruntfile.js Outdated Show resolved Hide resolved
@adamziel adamziel force-pushed the update/sync-gutenberg-packages-to-rebuild-php-includes branch from 848ba38 to 6156242 Compare May 10, 2022 13:48
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
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
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
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
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
2 participants