mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-12-26 17:08:54 +01:00
Try using a third-party action for prettier
This commit is contained in:
parent
e550b15094
commit
a6fe023519
12
.github/workflows/prettier.yml
vendored
12
.github/workflows/prettier.yml
vendored
@ -10,13 +10,7 @@ jobs:
|
||||
steps:
|
||||
- name: Check out repo
|
||||
uses: actions/checkout@v2
|
||||
- uses: actions/cache@v2
|
||||
name: Configure npm caching
|
||||
- uses: actionsx/prettier@v2
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-npm-${{ hashFiles('**/workflows/prettier.yml') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-npm-
|
||||
- name: Run prettier
|
||||
run: |-
|
||||
npm run prettier-check
|
||||
# prettier CLI arguments.
|
||||
args: --check \"./**/*.js\" --config .prettierrc.json
|
Loading…
Reference in New Issue
Block a user