This repository was archived by the owner on Sep 17, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +78
-0
lines changed Expand file tree Collapse file tree 2 files changed +78
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Ship js trigger
2
+ on :
3
+ pull_request :
4
+ types :
5
+ - closed
6
+ jobs :
7
+ build :
8
+ name : Release
9
+ runs-on : ubuntu-latest
10
+ if : github.event.pull_request.merged == true && startsWith(github.head_ref, 'releases/v')
11
+ steps :
12
+ - uses : actions/checkout@v2.3.5
13
+ with :
14
+ fetch-depth : 0
15
+ ref : main
16
+ - uses : actions/setup-node@v2.4.1
17
+ with :
18
+ registry-url : " https://registry.npmjs.org"
19
+ node-version : ' 14'
20
+ - run : pnpm i
21
+ - run : npx shipjs trigger
22
+ env :
23
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
24
+ NPM_AUTH_TOKEN : ${{ secrets.NPM_AUTH_TOKEN }}
25
+ SLACK_INCOMING_HOOK : ${{ secrets.SLACK_INCOMING_HOOK }}
Original file line number Diff line number Diff line change
1
+ name : Test
2
+ on :
3
+ push :
4
+ branches :
5
+ - main
6
+ pull_request :
7
+ branches :
8
+ - main
9
+ env :
10
+ CI : true
11
+
12
+ jobs :
13
+ test :
14
+ name : " Test on Node.js ${{ matrix.node }} OS: ${{ matrix.os }} Vue: ${{matrix.vue}}"
15
+ runs-on : ${{ matrix.os }}
16
+ strategy :
17
+ matrix :
18
+ os : [ubuntu-latest, windows-latest]
19
+ node : [16]
20
+ steps :
21
+ - name : Checkout
22
+ uses : actions/checkout@v2.3.5
23
+ with :
24
+ fetch-depth : 0
25
+ - name : Setup Node.js ${{ matrix.node }}
26
+ uses : actions/setup-node@v2.4.1
27
+ with :
28
+ node-version : ${{ matrix.node }}
29
+ - name : Install
30
+ run : pnpm i
31
+
32
+ - name : Test
33
+ run : pnpm test --coverage
34
+
35
+ - name : Upload code coverage
36
+ uses : codecov/codecov-action@v2
37
+
38
+ lint :
39
+ runs-on : ubuntu-latest
40
+ name : " Lint source code"
41
+ steps :
42
+ - name : Checkout
43
+ uses : actions/checkout@v2.3.5
44
+ with :
45
+ fetch-depth : 0
46
+ - name : Setup Node.js
47
+ uses : actions/setup-node@v2.4.1
48
+
49
+ - name : Install
50
+ run : pnpm i
51
+
52
+ - name : Lint
53
+ run : pnpm lint
You can’t perform that action at this time.
0 commit comments