Skip to content
This repository was archived by the owner on Oct 31, 2024. It is now read-only.

Commit d371777

Browse files
author
Amir Blum
authored
ci: run prettier in different ci job (#90)
1 parent 3ba0a68 commit d371777

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.github/workflows/test.yml

+10-3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ on:
55
branches: [master]
66

77
jobs:
8+
9+
prettier:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: Prettier Check
16+
run: yarn prettier:check
17+
818
test:
919
runs-on: ubuntu-latest
1020
services:
@@ -39,9 +49,6 @@ jobs:
3949
- name: Install Dependencies
4050
run: yarn
4151

42-
- name: Prettier check
43-
run: yarn prettier:check
44-
4552
- name: Build
4653
run: yarn build:ci
4754

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"build:ci": "lerna run build",
99
"postinstall": "lerna bootstrap",
1010
"prettier": "prettier --config .prettierrc.yml --write --ignore-unknown \"**/*\"",
11-
"prettier:check": "prettier --config .prettierrc.yml --check --ignore-unknown \"**/*\"",
11+
"prettier:check": "npx prettier --config .prettierrc.yml --check --ignore-unknown \"**/*\"",
1212
"version:update": "lerna run version:update",
1313
"version": "git add packages/**/version.ts",
1414
"publish:ci": "lerna publish --yes --allow-branch master --create-release github --conventionalCommits",

0 commit comments

Comments
 (0)