1
- name : Default CI
2
-
1
+ name : Release CI
3
2
on :
4
3
push :
5
4
branches :
6
- - master
7
- pull_request :
8
- branches :
9
- - ' **'
10
-
5
+ - master
11
6
jobs :
12
- tests :
7
+ release :
8
+ name : Release
13
9
runs-on : ubuntu-latest
14
10
steps :
15
- - name : Checkout
16
- uses : actions/checkout@v3
17
- with :
18
- fetch-depth : 0
19
- - name : Setup Nodejs Env
20
- run : echo "NODE_VER=`cat .nvmrc`" >> $GITHUB_ENV
21
- - name : Setup Nodejs
22
- uses : actions/setup-node@v3
23
- with :
24
- node-version : ${{ env.NODE_VER }}
25
- - name : Install dependencies
26
- run : npm ci
27
- - name : Validate package-lock.json changes
28
- run : make validate-no-uncommitted-package-lock-changes
29
- - name : Lint
30
- run : npm run lint
31
- - name : Test
32
- run : npm run test
33
- - name : Build
34
- run : npm run build
35
- - name : i18n_extract
36
- run : npm run i18n_extract
37
- - name : Coverage
38
- uses : codecov/codecov-action@v3
39
- - name : Run semantic release
40
- id : ver
41
- env :
42
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
43
- run : npx semantic-release
44
-
45
- print :
46
- needs : release
47
- runs-on : ubuntu-20.04
48
- steps :
49
- - name : Print version
50
- run : echo ${{ needs.release.outputs.output1 }}
51
- - name : i18n_extract
52
- run : npm run i18n_extract
53
- - name : Coverage
54
- uses : codecov/codecov-action@v3
11
+ - name : Checkout
12
+ uses : actions/checkout@v3
13
+ with :
14
+ fetch-depth : 0
15
+ - name : Setup Nodejs Env
16
+ run : echo "NODE_VER=`cat .nvmrc`" >> $GITHUB_ENV
17
+ - name : Setup Node.js
18
+ uses : actions/setup-node@v3
19
+ with :
20
+ node-version : ${{ env.NODE_VER }}
21
+ - name : Install dependencies
22
+ run : npm ci
23
+ - name : Validate package-lock.json changes
24
+ run : make validate-no-uncommitted-package-lock-changes
25
+ - name : Lint
26
+ run : npm run lint
27
+ - name : Test
28
+ run : npm run test
29
+ - name : i18n_extract
30
+ run : npm run i18n_extract
31
+ - name : Coverage
32
+ uses : codecov/codecov-action@v3
33
+ - name : Build
34
+ run : npm run build
35
+ - name : Release
36
+ uses : cycjimmy/semantic-release-action@v3
37
+ with :
38
+ semantic_version : 16
39
+ env :
40
+ GITHUB_TOKEN : ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }}
41
+ NPM_TOKEN : ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }}
0 commit comments