File tree Expand file tree Collapse file tree 6 files changed +2769
-2409
lines changed
Expand file tree Collapse file tree 6 files changed +2769
-2409
lines changed Original file line number Diff line number Diff line change 1+ name : Publish to NPM
2+
3+ on :
4+ workflow_dispatch :
5+
6+ jobs :
7+ Publish :
8+ name : Publish
9+ runs-on : ubuntu-latest
10+ if : github.ref == 'refs/heads/master'
11+ steps :
12+ - name : checkout
13+ uses : actions/checkout@v2
14+ with :
15+ ref : ' master'
16+
17+ - uses : actions/setup-node@v1
18+ with :
19+ node-version : 12
20+ registry-url : https://registry.npmjs.org/
21+
22+ - name : Install dependencies
23+ run : yarn install
24+
25+ - name : Test
26+ run : yarn test
27+
28+ - name : Publish to NPM
29+ run : npm publish
30+ env :
31+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 1+ name : Test
2+
3+ on :
4+ pull_request :
5+ branches : [ master ]
6+
7+ jobs :
8+ unit-tests :
9+ name : Unit Tests
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@v2
13+
14+ - name : install
15+ run : yarn
16+
17+ - name : test
18+ run : yarn test
Original file line number Diff line number Diff line change @@ -8,4 +8,5 @@ __mocks__
88__tests__
99.babelrc
1010.travis.yml
11- coverage
11+ coverage
12+ .github
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11{
22 "name" : " react-native-size-matters" ,
3- "version" : " 0.3.1 " ,
3+ "version" : " 0.4.0 " ,
44 "description" : " A React-Native utility belt for scaling the size your apps UI across different sized devices" ,
55 "main" : " index.js" ,
66 "scripts" : {
2828 "devDependencies" : {
2929 "@babel/core" : " ^7.4.3" ,
3030 "@babel/preset-env" : " ^7.4.3" ,
31- "babel-jest" : " ^24.6.0" ,
32- "jest" : " ^24.6.1" ,
33- "jest-cli" : " ^24.6.0"
31+ "babel-jest" : " ^26.6.3" ,
32+ "jest" : " ^26.6.3"
3433 }
3534}
You can’t perform that action at this time.
0 commit comments