westonruter / syntax-highlighting-code-block

Extending the WordPress Code block with syntax highlighting rendered on the server, thus having faster frontend performance and being AMP-compatible.
https://wordpress.org/plugins/syntax-highlighting-code-block/
GNU General Public License v2.0
118 stars 11 forks source link

Automate checking for upstream changes to Code block's edit.js #787

Closed westonruter closed 11 months ago

westonruter commented 11 months ago

Fixes #697.

This will ensure that things like #786 don't fall under the radar. Whenever Dependabot updates the @wordpress/block-library package, this will check whether the MD5 hash of the Code block's edit.js has been changed. If so, the workflow will fail. After inspecting the file for changes to see if anything needs to be modified in our version, the checksum file can be updated via npm run md5sum:update and the file block-library.md5 committed.