Skip to content

Commit

Permalink
ci: use package.json version of prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasgloning committed Jul 31, 2023
1 parent d59a2fe commit 6b9ed7c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,11 @@ jobs:
steps:
- name: Check out repo
uses: actions/checkout@v3
- uses: actions/cache@v3
name: Configure npm caching
- uses: actions/setup-node@v3
with:
path: ~/.npm
key: ${{ runner.os }}-npm-${{ hashFiles('**/workflows/prettier.yml') }}
restore-keys: |
${{ runner.os }}-npm-
node-version: 16
cache: "npm"
- run: npm ci
- name: Run prettier
run: |-
npx prettier --check .
npm run format:check
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@
"test:watch": "jest --watch",
"coverage": "jest --coverage --collectCoverageFrom=\"./lib/**\"",
"format": "prettier --write .",
"format:check": "prettier --check .",
"semantic-release": "semantic-release",
"e2e": "wdio run e2e/wdio.local.conf.ts",
"e2e:bstack": "wdio run e2e/wdio.bstack.conf.ts"
Expand Down

0 comments on commit 6b9ed7c

Please sign in to comment.