Skip to content

Commit c44313b

Browse files
authored
Pin Prettier plug-in version in GitHub action (#351)
[prettier/plugin-xml](https://github.com/prettier/plugin-xml) dropped support for the `xmlSelfClosingSpace` option in [v1.0.0](https://github.com/prettier/plugin-xml/blob/main/CHANGELOG.md#100---2021-07-14), which causes formatting checks to fail until the extra space is added to self-closing elements. This commit pins the plug-in version to the last version that supports the `xmlSelfClosingSpace` option to allow checks to complete successfully and work around the regression in prettier/plugin-xml#11. Signed-off-by: Roger Sheen <roger@infotexture.net>
1 parent f75692a commit c44313b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/prettier.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ jobs:
2828
# This part is also where you can pass other options, for example:
2929
prettier_options: --write **/*.{css,dita*,json,md,scss,xml,yaml,yml}
3030
# Install Prettier XML plugin
31-
prettier_plugins: '@prettier/plugin-xml'
31+
prettier_plugins: '@prettier/plugin-xml@v0.13.1'
3232
# Runs the action in dry mode. Files wont get changed and the action fails if there are unprettified files.
3333
dry: true

0 commit comments

Comments
 (0)