Skip to content

Commit 0220992

Browse files
committed
Refactor prettier installation to use npx for consistency in workflows
1 parent 1c04835 commit 0220992

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

‎.github/workflows/actions.yml‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ jobs:
3434
run: |
3535
pip install --upgrade pipenv
3636
pipenv install
37-
sudo npm install -g prettier@3.5.3
3837
3938
- name: Generate
4039
run: |
@@ -43,7 +42,7 @@ jobs:
4342
4443
- name: Prettify files
4544
run: |
46-
prettier --write .
45+
npx prettier@3.5.3 --write .
4746
4847
- name: Check for changes
4948
id: check_changes

‎.github/workflows/pr-check.yml‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ jobs:
3131
run: |
3232
pip install --upgrade pipenv
3333
pipenv install
34-
sudo npm install -g prettier@3.5.3
3534
3635
- name: Generate
3736
run: |
@@ -40,7 +39,7 @@ jobs:
4039
4140
- name: Prettify files
4241
run: |
43-
prettier --write .
42+
npx prettier@3.5.3 --write .
4443
4544
- name: Check for changes
4645
run: |

0 commit comments

Comments
 (0)