-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (39 loc) · 993 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: CI/CD Workflow
on:
pull_request:
push:
branches:
- main
jobs:
setup:
uses: ./.github/workflows/_base.yml@v1
with:
node_version: '18'
commitlint:
needs: setup
uses: ./.github/workflows/commitlint.yml@v1
with:
edit: '.git/COMMIT_EDITMSG'
eslint:
needs: setup
uses: ./.github/workflows/eslint-check.yml@v1
with:
maxWarnings: '0'
prettier:
needs: setup
uses: ./.github/workflows/prettier-check.yml@v1
generate-writerside-docs:
needs: setup
if: github.ref == 'refs/heads/main'
uses: ./.github/workflows/generate_writerside_docs.yml@v1
with:
npm_token: ${{ secrets.NPM_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
semantic-release:
needs: setup
if: github.ref == 'refs/heads/main'
uses: ./.github/workflows/semantic-release.yml@v1
with:
node_version: '18'
npm_token: ${{ secrets.NPM_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}