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 44 pull_request :
55 push :
66 branches :
7- - master # Only on master now
7+ - master
88
99jobs :
10- Lint :
10+ Build :
1111 if : " !contains(github.event.head_commit.message, '[skip ci]')"
1212 runs-on : ubuntu-latest
1313 steps :
1818 - name : Commit lint ✨
1919 uses : wagoid/commitlint-github-action@v5
2020
21- - uses : actions/setup-node@v3
22- with :
23- node-version : 16
24-
25- - name : Setup PNPM
26- uses : pnpm/action-setup@v2.2.2
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 :
4521 - name : Checkout 🛎️
4622 uses : actions/checkout@v3
4723
@@ -59,10 +35,14 @@ jobs:
5935 pnpm install
6036 pnpm run build
6137
38+ - name : Lint ✨
39+ run : pnpm test.lint
40+
6241 - name : Deploy 🚀
42+ if : github.ref == 'refs/heads/master' && github.event.repository.fork == false
6343 uses : JamesIves/github-pages-deploy-action@v4.3.3
6444 with :
6545 branch : gh-pages # The branch the action should deploy to.
6646 folder : _site # The folder the action should deploy.
6747 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