File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,13 +14,17 @@ jobs:
1414 - ubuntu-latest
1515 # - macos-latest
1616 # - windows-latest
17- atom_channel : [stable, beta]
1817 steps :
1918 - uses : actions/checkout@v3
19+ with :
20+ fetch-depth : 0
21+
22+ - name : Commit lint ✨
23+ uses : wagoid/commitlint-github-action@v5
2024
2125 - uses : actions/setup-node@v3
2226 with :
23- node-version : " 14 "
27+ node-version : " 18 "
2428 - name : Setup PNPM
2529 uses : pnpm/action-setup@master
2630 with :
@@ -29,33 +33,18 @@ jobs:
2933 - name : Install dependencies
3034 run : pnpm install
3135
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-
5136 - name : Format ✨
52- run : npm run test.format
37+ run : pnpm run test.format
5338
5439 - name : Lint ✨
55- run : npm run test.lint
40+ run : pnpm run test.lint
41+
42+ - name : Tests
43+ run : |
44+ pnpm test
5645
5746 Release :
58- needs : [Test, Lint ]
47+ needs : [Test]
5948 if : github.ref == 'refs/heads/master' &&
6049 github.event.repository.fork == false
6150 runs-on : ubuntu-latest
7261 env :
7362 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
7463 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