File tree Expand file tree Collapse file tree 1 file changed +7
-27
lines changed Expand file tree Collapse file tree 1 file changed +7
-27
lines changed Original file line number Diff line number Diff line change 4
4
pull_request :
5
5
push :
6
6
branches :
7
- - master # Only on master now
7
+ - master
8
8
9
9
jobs :
10
- Lint :
10
+ Build :
11
11
if : " !contains(github.event.head_commit.message, '[skip ci]')"
12
12
runs-on : ubuntu-latest
13
13
steps :
18
18
- name : Commit lint ✨
19
19
uses : wagoid/commitlint-github-action@v5
20
20
21
- - uses : actions/setup-node@v3
22
- with :
23
- node-version : 16
24
-
25
- - name : Setup PNPM
26
-
27
- with :
28
- version : latest
29
-
30
- - name : Install dependencies
31
- run : pnpm install
32
-
33
- # - name: Format ✨
34
- # run: pnpm test.format
35
-
36
- - name : Lint ✨
37
- run : pnpm test.lint
38
-
39
- build-and-deploy :
40
- needs : [Lint]
41
- if : github.ref == 'refs/heads/master' &&
42
- github.event.repository.fork == false
43
- runs-on : ubuntu-latest
44
- steps :
45
21
- name : Checkout 🛎️
46
22
uses : actions/checkout@v3
47
23
@@ -59,10 +35,14 @@ jobs:
59
35
pnpm install
60
36
pnpm run build
61
37
38
+ - name : Lint ✨
39
+ run : pnpm test.lint
40
+
62
41
- name : Deploy 🚀
42
+ if : github.ref == 'refs/heads/master' && github.event.repository.fork == false
63
43
64
44
with :
65
45
branch : gh-pages # The branch the action should deploy to.
66
46
folder : _site # The folder the action should deploy.
67
47
env :
68
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
48
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments