mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-05-20 00:00:46 +02: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:
|
steps:
|
||||||
- name: Check out repo
|
- name: Check out repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- uses: actions/cache@v2
|
- uses: actionsx/prettier@v2
|
||||||
name: Configure npm caching
|
|
||||||
with:
|
with:
|
||||||
path: ~/.npm
|
# prettier CLI arguments.
|
||||||
key: ${{ runner.os }}-npm-${{ hashFiles('**/workflows/prettier.yml') }}
|
args: --check \"./**/*.js\" --config .prettierrc.json
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-npm-
|
|
||||||
- name: Run prettier
|
|
||||||
run: |-
|
|
||||||
npm run prettier-check
|
|
Loading…
Reference in New Issue
Block a user