Skip to content

Commit 3e52857

Browse files
committed
tweaking prettier action
1 parent 808798b commit 3e52857

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/packaging.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,14 @@ jobs:
106106
--version-number "$VERSION_NUMBER" \
107107
--wait 29
108108
109-
# Note: Packaging updates sfdx-project.json, but the formatting is often non-compliant
110-
# This action updates the changed project files to their original format
111109
- name: Run Prettier
112-
uses: creyD/prettier_action@v4.6
113-
with:
114-
prettier_options: --write **/*.{json}
110+
shell: bash
111+
run: |
112+
# Packaging causes project file's formatting to be overwritten
113+
# Before committing, re-run prettier on these files:
114+
npm i prettier
115+
prettier -w sfdx-project.json
116+
prettier -w tmp/sfdx-project.json
115117
116118
- name: Cleanup
117119
shell: bash

0 commit comments

Comments
 (0)