File tree Expand file tree Collapse file tree 2 files changed +19
-8
lines changed Expand file tree Collapse file tree 2 files changed +19
-8
lines changed Original file line number Diff line number Diff line change @@ -34,20 +34,29 @@ jobs:
34
34
Lint :
35
35
if : " !contains(github.event.head_commit.message, '[skip ci]')"
36
36
runs-on : ubuntu-latest
37
+ env :
38
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
37
39
steps :
38
40
- uses : actions/checkout@v2
39
41
with :
40
42
fetch-depth : 0
41
- # - name: Commit lint ✨
42
- # uses: wagoid/commitlint-github-action@v1
43
- - uses : actions/setup-node@v1
43
+ - name : Commit lint ✨
44
+ uses : wagoid/commitlint-github-action@v2
45
+
46
+ - uses : UziTech/action-setup-atom@v1
47
+ - name : Setup PNPM
48
+
44
49
with :
45
- node-version : " 14.x"
46
- - name : Install NPM dependencies
47
- run : |
48
- npm install
50
+ version : latest
51
+
52
+ - name : Install dependencies
53
+ run : pnpm install --only=dev --ignore-scripts
54
+
55
+ - name : Format ✨
56
+ run : pnpm test.format
57
+
49
58
- name : Lint ✨
50
- run : npm run lint
59
+ run : pnpm test. lint
51
60
52
61
Release :
53
62
needs : [Test, Lint]
Original file line number Diff line number Diff line change 13
13
"license" : " MIT" ,
14
14
"scripts" : {
15
15
"format" : " prettier --write ." ,
16
+ "test.format" : " prettier . --check" ,
16
17
"lint" : " eslint . --fix" ,
18
+ "test.lint" : " eslint ." ,
17
19
"test" : " atom --test spec" ,
18
20
"clean" : " shx rm -rf dist" ,
19
21
"babel" : " npm run clean && shx cp -r src 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