This repository has been archived by the owner. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +4638
-171
lines changed Expand file tree Collapse file tree 3 files changed +4638
-171
lines changed Original file line number Diff line number Diff line change 5
5
- master
6
6
pull_request :
7
7
jobs :
8
- build :
8
+ test :
9
9
strategy :
10
10
matrix :
11
- node-version : [10.x, 12.x]
11
+ node-version : [10.x, 12.x, 14.x ]
12
12
runs-on : ubuntu-latest
13
+ if : " !contains(github.event.head_commit.message, '[skip ci]')"
13
14
steps :
14
15
- name : Checkout
15
16
uses : actions/checkout@v1
16
- - name : Use Node.js ${{ matrix.node-version }}
17
+ - name : Set up Node.js ${{ matrix.node-version }}
17
18
uses : actions/setup-node@v1
18
19
with :
19
20
node-version : ${{ matrix.node-version }}
20
- - name : yarn install, build, and test
21
+ - name : Install
22
+ run : yarn ci
23
+ - name : Test
24
+ run : yarn test
25
+ release :
26
+ needs : [test]
27
+ runs-on : ubuntu-latest
28
+ if : " !contains(github.event.head_commit.message, '[skip ci]')"
29
+ steps :
30
+ - name : Set up Node.js
31
+ uses : actions/setup-node@v1
32
+ with :
33
+ node-version : 14
34
+ - name : Checkout
35
+ uses : actions/checkout@v2
36
+ - name : Install
37
+ run : yarn ci
38
+ - name : Release
21
39
env :
22
- CI : true
23
- run : |
24
- yarn
25
- yarn ci:test
40
+ GITHUB_TOKEN : ${{ secrets.GH_TOKEN }}
41
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
42
+ run : npx semantic-release
Original file line number Diff line number Diff line change 26
26
"url" : " git+https://github.com/microsoft/react-native-lazy-index.git"
27
27
},
28
28
"scripts" : {
29
- "ci:test " : " yarn format && yarn codegen && git diff && test $(git diff | grep -c '$') -eq 0 " ,
29
+ "ci" : " yarn --frozen-lockfile --non-interactive " ,
30
30
"codegen" : " babel --plugins codegen index.js > index.js.out" ,
31
- "format" : " prettier --write $(git ls-files '*.js' '*.json')"
31
+ "format" : " prettier --write $(git ls-files '*.js' '*.json')" ,
32
+ "test" : " yarn format && yarn codegen && git diff && test $(git diff | grep -c '$') -eq 0"
32
33
},
33
34
"dependencies" : {
34
35
"@babel/core" : " ^7.0.0-0" ,
39
40
},
40
41
"devDependencies" : {
41
42
"@babel/cli" : " ^7.0.0" ,
42
- "prettier" : " 2.0.5"
43
+ "prettier" : " ^2.0.0" ,
44
+ "semantic-release" : " ^17.0.0"
43
45
},
44
46
"experiences" : {
45
47
"FeatureA" : " @contoso/feature-a" ,
46
48
"FeatureB" : " @contoso/feature-b" ,
47
49
"FeatureC" : " @contoso/feature-c" ,
48
50
"FeatureD" : " @contoso/feature-d"
51
+ },
52
+ "release" : {
53
+ "tagFormat" : " ${version}"
49
54
}
50
55
}
You can’t perform that action at this time.
0 commit comments