One more try

This commit is contained in:
cmdr2 2023-04-29 07:09:57 +05:30
parent 3100fae118
commit 0ebad77083
2 changed files with 24 additions and 2 deletions

22
.github/workflows/prettier.yml vendored Normal file
View File

@ -0,0 +1,22 @@
name: Check JavaScript for conformance with Prettier
on:
push:
pull_request:
jobs:
prettier:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v2
- uses: actions/cache@v2
name: Configure npm caching
with:
path: ~/.npm
key: ${{ runner.os }}-npm-${{ hashFiles('**/workflows/prettier.yml') }}
restore-keys: |
${{ runner.os }}-npm-
- name: Run prettier
run: |-
npm run prettier-check

View File

@ -1,7 +1,7 @@
{ {
"scripts": { "scripts": {
"prettier-fix": "npx prettier --write -c ui", "prettier-fix": "npx prettier --write \"./**/*.js\"",
"prettier-check": "npx prettier --check -c ui" "prettier-check": "npx prettier --check \"./**/*.js\""
}, },
"devDependencies": { "devDependencies": {
"prettier": "^1.19.1" "prettier": "^1.19.1"