File tree Expand file tree Collapse file tree 2 files changed +21
-9
lines changed Expand file tree Collapse file tree 2 files changed +21
-9
lines changed Original file line number Diff line number Diff line change @@ -32,20 +32,29 @@ jobs:
32
32
Lint :
33
33
if : " !contains(github.event.head_commit.message, '[skip ci]')"
34
34
runs-on : ubuntu-latest
35
+ env :
36
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35
37
steps :
36
38
- uses : actions/checkout@v2
37
39
with :
38
40
fetch-depth : 0
39
- # - name: Commit lint ✨
40
- # uses: wagoid/commitlint-github-action@v1
41
-
41
+ - name : Commit lint ✨
42
+ uses : wagoid/commitlint-github-action@v2
43
+
44
+ - uses : UziTech/action-setup-atom@v1
45
+ - name : Setup PNPM
46
+
42
47
with :
43
- node-version : " *"
44
- - name : Install NPM dependencies
45
- run : |
46
- npm install
48
+ version : latest
49
+
50
+ - name : Install dependencies
51
+ run : pnpm install --only=dev --ignore-scripts
52
+
53
+ # - name: Format ✨
54
+ # run: pnpm test.format
55
+
47
56
- name : Lint ✨
48
- run : npm run lint
57
+ run : pnpm test. lint
49
58
50
59
Release :
51
60
needs : [Test, Lint]
Original file line number Diff line number Diff line change 12
12
" typings"
13
13
],
14
14
"scripts" : {
15
+ "format" : " prettier --write ." ,
16
+ "test.format" : " prettier . --check" ,
17
+ "lint" : " eslint . --fix --ext .ts" ,
18
+ "test.lint" : " eslint . --ext .ts" ,
15
19
"clean" : " rimraf build" ,
16
20
"compile" : " tsc" ,
17
21
"watch" : " tsc -watch" ,
18
- "lint" : " eslint . --ext .ts" ,
19
22
"prepare" : " npm run clean && npm run compile" ,
20
23
"test" : " npm run compile && atom --test build/test"
21
24
},
You can’t perform that action at this time.
0 commit comments