File tree 6 files changed +2769
-2409
lines changed
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__
8
8
__tests__
9
9
.babelrc
10
10
.travis.yml
11
- coverage
11
+ coverage
12
+ .github
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-native-size-matters" ,
3
- "version" : " 0.3.1 " ,
3
+ "version" : " 0.4.0 " ,
4
4
"description" : " A React-Native utility belt for scaling the size your apps UI across different sized devices" ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
28
28
"devDependencies" : {
29
29
"@babel/core" : " ^7.4.3" ,
30
30
"@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"
34
33
}
35
34
}
You can’t perform that action at this time.
0 commit comments