File tree Expand file tree Collapse file tree 2 files changed +17
-8
lines changed Expand file tree Collapse file tree 2 files changed +17
-8
lines changed Original file line number Diff line number Diff line change @@ -40,16 +40,23 @@ jobs:
40
40
with :
41
41
fetch-depth : 0
42
42
- name : Commit lint ✨
43
- uses : wagoid/commitlint-github-action@v1
44
- - uses : actions/setup-node@v1
43
+ uses : wagoid/commitlint-github-action@v2
44
+
45
+ - uses : UziTech/action-setup-atom@v1
46
+ - name : Setup PNPM
47
+
45
48
with :
46
- node-version : " 12.x"
47
- - name : Install NPM dependencies
48
- run : |
49
- npm install
50
- - name : Lint ✨
51
- run : npm run lint
49
+ version : latest
50
+
51
+ - name : Install dependencies
52
+ run : pnpm install --only=dev --ignore-scripts
52
53
54
+ - name : Format ✨
55
+ run : pnpm test.format
56
+
57
+ - name : Lint ✨
58
+ run : pnpm test.lint
59
+
53
60
Release :
54
61
needs : [Test, Lint]
55
62
if : github.ref == 'refs/heads/master' &&
Original file line number Diff line number Diff line change 21
21
},
22
22
"scripts" : {
23
23
"format" : " prettier --write ." ,
24
+ "test.format" : " prettier . --check" ,
24
25
"lint" : " eslint . --fix" ,
26
+ "test.lint" : " eslint ." ,
25
27
"test" : " atom --test spec" ,
26
28
"clean" : " shx rm -rf dist modules" ,
27
29
"babel" : " npm run clean && shx cp -r lib dist && cross-env NODE_ENV=development cross-env BABEL_KEEP_MODULES=false babel dist --out-dir dist" ,
You can’t perform that action at this time.
0 commit comments