File tree Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -41,21 +41,29 @@ jobs:
41
41
Lint :
42
42
if : " !contains(github.event.head_commit.message, '[skip ci]')"
43
43
runs-on : ubuntu-latest
44
+ env :
45
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
44
46
steps :
45
47
- uses : actions/checkout@v2
46
48
with :
47
49
fetch-depth : 0
48
50
- name : Commit lint ✨
49
51
uses : wagoid/commitlint-github-action@v2
50
52
51
- - uses : actions/setup-node@v1
53
+ - uses : UziTech/action-setup-atom@v1
54
+ - name : Setup PNPM
55
+
52
56
with :
53
- node-version : " 14.x"
54
- - name : Install NPM dependencies
55
- run : |
56
- npm install
57
+ version : latest
58
+
59
+ - name : Install dependencies
60
+ run : pnpm install --only=dev --ignore-scripts
61
+
62
+ - name : Format ✨
63
+ run : pnpm test.format
64
+
57
65
- name : Lint ✨
58
- run : npm run lint
66
+ run : pnpm test. lint
59
67
60
68
Release :
61
69
needs : [Test, Lint]
Original file line number Diff line number Diff line change 12
12
"license" : " MIT" ,
13
13
"scripts" : {
14
14
"format" : " prettier --write ." ,
15
+ "test.format" : " prettier . --check" ,
15
16
"lint" : " eslint . --fix" ,
17
+ "test.lint" : " eslint ." ,
16
18
"test" : " npm run build && atom --test spec" ,
17
19
"clean" : " shx rm -rf dist" ,
18
20
"dev" : " npm run clean && cross-env NODE_ENV=development cross-env BABEL_KEEP_MODULES=true rollup -c -w" ,
You can’t perform that action at this time.
0 commit comments