Skip to content

Commit d539932

Browse files
committed
Custom Prettier action
1 parent ebf62a4 commit d539932

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/prettier.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ jobs:
1616
ref: ${{ github.head_ref }}
1717
fetch-depth: 0
1818

19-
- name: Install npm v8
20-
run: npm i -g npm@8
19+
- run: npm ci
2120

22-
- uses: creyD/[email protected]
21+
- run: npm run prettier
22+
23+
- name: Commit changes
24+
uses: stefanzweifel/git-auto-commit-action@v4
2325
with:
24-
prettier_version: 2.8.8
25-
prettier_options: --write .
26-
prettier_plugins: '@prettier/[email protected]'
27-
commit_message: 'Run Prettier'
26+
commit_message: Run Prettier
27+
branch: ${{ github.head_ref }}

0 commit comments

Comments
 (0)