File tree Expand file tree Collapse file tree 1 file changed +13
-30
lines changed Expand file tree Collapse file tree 1 file changed +13
-30
lines changed Original file line number Diff line number Diff line change @@ -14,13 +14,17 @@ jobs:
14
14
- ubuntu-latest
15
15
# - macos-latest
16
16
# - windows-latest
17
- atom_channel : [stable, beta]
18
17
steps :
19
18
- uses : actions/checkout@v3
19
+ with :
20
+ fetch-depth : 0
21
+
22
+ - name : Commit lint ✨
23
+ uses : wagoid/commitlint-github-action@v5
20
24
21
25
- uses : actions/setup-node@v3
22
26
with :
23
- node-version : " 14 "
27
+ node-version : " 18 "
24
28
- name : Setup PNPM
25
29
uses : pnpm/action-setup@master
26
30
with :
@@ -29,33 +33,18 @@ jobs:
29
33
- name : Install dependencies
30
34
run : pnpm install
31
35
32
- - name : Tests
33
- run : |
34
- pnpm test
35
-
36
- Lint :
37
- if : " !contains(github.event.head_commit.message, '[skip ci]')"
38
- runs-on : ubuntu-latest
39
- env :
40
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
41
- steps :
42
- - uses : actions/checkout@v3
43
- with :
44
- fetch-depth : 0
45
- - name : Commit lint ✨
46
- uses : wagoid/commitlint-github-action@v5
47
-
48
- - name : Install dependencies
49
- run : npm install
50
-
51
36
- name : Format ✨
52
- run : npm run test.format
37
+ run : pnpm run test.format
53
38
54
39
- name : Lint ✨
55
- run : npm run test.lint
40
+ run : pnpm run test.lint
41
+
42
+ - name : Tests
43
+ run : |
44
+ pnpm test
56
45
57
46
Release :
58
- needs : [Test, Lint ]
47
+ needs : [Test]
59
48
if : github.ref == 'refs/heads/master' &&
60
49
github.event.repository.fork == false
61
50
runs-on : ubuntu-latest
72
61
env :
73
62
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
74
63
NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
75
- Skip :
76
- if : contains(github.event.head_commit.message, '[skip ci]')
77
- runs-on : ubuntu-latest
78
- steps :
79
- - name : Skip CI 🚫
80
- run : echo skip ci
You can’t perform that action at this time.
0 commit comments