File tree Expand file tree Collapse file tree 2 files changed +37
-1
lines changed Expand file tree Collapse file tree 2 files changed +37
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish
2
+ on :
3
+ push :
4
+ branches :
5
+ - ' master'
6
+
7
+
8
+ jobs :
9
+ publish :
10
+ runs-on : ubuntu-18.04
11
+ strategy :
12
+ matrix :
13
+ node-version : [12]
14
+ steps :
15
+ - name : Checkout
16
+ uses : actions/checkout@v2
17
+ with :
18
+ fetch-depth : 0
19
+ - uses : actions/setup-node@v1
20
+ with :
21
+ node-version : ${{ matrix.node-version }}
22
+ - name : Get yarn cache
23
+ id : yarn-cache
24
+ run : echo "::set-output name=dir::$(yarn cache dir)"
25
+ - uses : actions/cache@v2
26
+ with :
27
+ path : ${{ steps.yarn-cache.outputs.dir }}
28
+ key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
29
+ - name : Install Dependencies
30
+ run : yarn
31
+ - name : Publish Package
32
+ run : yarn ci:publish
33
+ env :
34
+ GITHUB_TOKEN : ${{ secrets.GH_TOKEN }}
35
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 18
18
"android" : " react-native run-android" ,
19
19
"flow" : " flow" ,
20
20
"lint" : " eslint . --cache" ,
21
- "tsc" : " tsc --noEmit"
21
+ "tsc" : " tsc --noEmit" ,
22
+ "ci:publish" : " yarn semantic-release"
22
23
},
23
24
"peerDependencies" : {
24
25
"react" : " >=16.0" ,
You can’t perform that action at this time.
0 commit comments